Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 16, 2024
1 parent a5836cf commit d383705
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
name: 'Test'
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
phpunit-versions: ['^9.0', '^10.0', '^11.0']
php: ['8.1', '8.2', '8.3']
phpunit: ['^9.0', '^10.0', '^11.0']
exclude:
- php-versions: '8.1'
phpunit-versions: '^11.0'
- php: '8.1'
phpunit: '^11.0'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -68,19 +68,19 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-phpunit-${{ matrix.phpunit-versions }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php-versions }}-phpunit-${{ matrix.phpunit-versions }}-composer-
key: ${{ runner.os }}-php-${{ matrix.php }}-phpunit-${{ matrix.phpunit }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-phpunit-${{ matrix.phpunit }}-composer-

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php }}
coverage: none
tools: infection, pint, phpstan

- name: Install dependencies
run: |
composer require phpunit/phpunit:${{ matrix.phpunit-versions }} --no-update
composer require phpunit/phpunit:${{ matrix.phpunit }} --no-update
composer update
- name: PHPUnit
Expand Down

0 comments on commit d383705

Please sign in to comment.