Skip to content

Commit

Permalink
Fix GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tanakahisateru committed Aug 29, 2022
1 parent 6040577 commit 54c773d
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/php.yml
Expand Up @@ -13,25 +13,20 @@ jobs:

strategy:
matrix:
php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1"]
composer-versions: ["lowest", "highest"]
php: ["7.2", "7.3", "7.4", "8.0", "8.1"]
dependencies: ["lowest", "highest"]

steps:
- uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php-versions }}

- uses: "actions/cache@v2"
id: composer-cache
with:
path: vendor
key: ${{ runner.os }}-composer-${{ matrix.composer-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.composer-versions }}-

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.composer-versions }}
composer-options: --prefer-dist --no-progress

- name: Run test suite
run: vendor/bin/phpunit
- uses: "actions/checkout@v3"

- uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php }}

- uses: "ramsey/composer-install@v2"
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: "--prefer-dist --no-progress"

- name: Run test suite
run: vendor/bin/phpunit

0 comments on commit 54c773d

Please sign in to comment.