Skip to content

Commit 2279537

Browse files
committed
ci: Use composer update to support untracked composer.lock across PHP versions
1 parent c2b86ec commit 2279537

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,13 @@ jobs:
5151
php-version: '8.4'
5252
tools: composer:v2
5353
coverage: none
54-
env:
55-
composer-cache-provider: composer
56-
57-
- name: Get Composer Cache Directory
58-
id: composer-cache-84
59-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
60-
61-
- name: Cache Composer dependencies (PHP 8.4)
62-
uses: actions/cache@v4
63-
with:
64-
path: ${{ steps.composer-cache-84.outputs.dir }}
65-
key: ${{ runner.os }}-php-8.4-composer-${{ hashFiles('**/composer.lock') }}
66-
restore-keys: |
67-
${{ runner.os }}-php-8.4-composer-
6854

6955
- name: Install dependencies (PHP 8.4)
70-
run: composer install --prefer-dist --no-progress
56+
run: composer update --prefer-dist --no-progress
7157

7258
- name: Run Benchmark (PHP 8.4)
7359
run: |
74-
./vendor/bin/phpbench run --report=expression --dump-file=results/bench_84.xml
60+
./vendor/bin/phpbench run --dump-file=results/bench_84.xml
7561
php ./tests/benchmarks_result_to_markdown.php -i results/bench_84.xml -o results/bench_84.md
7662
7763
# 3. Create orphan branch and force push single result commit

0 commit comments

Comments
 (0)