Skip to content

chore(deps): bump clap_complete from 4.3.2 to 4.4.3 #27

chore(deps): bump clap_complete from 4.3.2 to 4.4.3

chore(deps): bump clap_complete from 4.3.2 to 4.4.3 #27

Workflow file for this run

on:
pull_request:
paths:
- '**.rs'
- .github/workflows/rustbench.yml
- '**/Cargo.toml'
workflow_dispatch:
name: Benchmark
permissions:
pull-requests: write
jobs:
benchmark:
runs-on: ubuntu-latest
services:
languagetool:
image: erikvl87/languagetool:latest
ports:
- 8010:8010
env:
Java_Xms: 512m
Java_Xmx: 2g
env:
LANGUAGETOOL_HOSTNAME: http://localhost
LANGUAGETOOL_PORT: 8010
steps:
- uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Install Critcmp
uses: baptiste0928/cargo-install@v2
with:
crate: critcmp
version: latest
- name: Run Benchmarks on changes
run: cargo bench --bench bench_main -- --save-baseline changes
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.sha }}
clean: false
- name: Run Benchmarks before changes
run: cargo bench --bench bench_main -- --save-baseline before
- name: Compare benchmarks
run: |
echo 'results<<EOF' >> $GITHUB_OUTPUT
critcmp before changes >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
id: compare
- name: Comment PR with execution number
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Benchmark results:
```
${{ steps.compare.outputs.results }}
```
comment_tag: benchmarks