Skip to content

Commit

Permalink
Use ramsey/composer-install in PHPBench workflow (#11444)
Browse files Browse the repository at this point in the history
It will handle caching for us.
  • Loading branch information
greg0ire committed May 5, 2024
1 parent 9e7715f commit 029ca61
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/phpbench.yml
Expand Up @@ -47,15 +47,8 @@ jobs:
coverage: "pcov"
ini-values: "zend.assertions=1, apc.enable_cli=1"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Install dependencies with composer"
run: "composer update --no-interaction --no-progress"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"

- name: "Run PHPBench"
run: "vendor/bin/phpbench run --report=default"

0 comments on commit 029ca61

Please sign in to comment.