chore: fix benchmark part 3
Don't clean the untracked files when checking out main or the PR benchmark results get deleted.
MODIFY
.github/workflows/bench_formatter.yml
.github/workflows/bench_formatter.yml
@@ -50,17 +50,17 @@ jobs:
- name: Checkout Main Branch
uses: actions/checkout@v2
with:
- submodules: false
+ clean: false
ref: main
- name: Run Bench on Main Branch
run: cargo bench_formatter --save-baseline main
- - name: Compare Bench Results on ${{ matrix.os }}
+ - name: Compare Bench Results
id: bench_comparison
shell: bash
run: |
- echo "### Bench results on ${{ matrix.os }}" > output
+ echo "### Formatter Benchmark Results" > output
echo "\`\`\`" >> output
critcmp main pr >> output
echo "\`\`\`" >> output

MODIFY
.github/workflows/bench_parser.yml
.github/workflows/bench_parser.yml
@@ -49,17 +49,17 @@ jobs:
- name: Checkout Main Branch
uses: actions/checkout@v2
with:
- submodules: false
+ clean: false
ref: main
- name: Run Bench on Main Branch
run: cargo bench_parser --save-baseline main
- - name: Compare Bench Results on ${{ matrix.os }}
+ - name: Compare Bench Results
id: bench_comparison
shell: bash
run: |
- echo "### Bench results on ${{ matrix.os }} of the parser" > output
+ echo "### Parser Benchmark Results" > output
echo "\`\`\`" >> output
critcmp main pr >> output
echo "\`\`\`" >> output

chore: fix benchmark part 3 (#2271)

Don't clean the untracked files when checking out main or the PR benchmark results get deleted.