Skip to content

Commit 9c43de7

Browse files
committed
ci: Clean workspace before switching PHP versions in benchmark workflow
1 parent 6045431 commit 9c43de7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
./vendor/bin/phpbench run --report=expression --dump-file=results/bench_73.xml
4646
php ./tests/benchmarks_result_to_markdown.php -i results/bench_73.xml -o results/bench_73.md
4747
# 2. PHP 8.4 Environment Execution
48+
# --- Clean workspace before switching PHP version ---
49+
- name: Clean working directory for PHP 8.4
50+
run: |
51+
git checkout .
52+
git clean -fd -e results/
4853
- name: Setup PHP 8.4
4954
uses: shivammathur/setup-php@v2
5055
with:

0 commit comments

Comments
 (0)