Skip to content

Commit

Permalink
Merge pull request #3 from faissaloux/pest3-support
Browse files Browse the repository at this point in the history
Support pest3
  • Loading branch information
faissaloux authored Oct 10, 2024
2 parents 203cdc2 + dbddca6 commit 8cb2ad8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
php: ['8.1', '8.2', '8.3']
pest: ['2.14', '3.0']
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: '8.1'
pest: '3.0'

name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
name: PHP ${{ matrix.php }} - PEST ^${{ matrix.pest }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout
Expand All @@ -25,7 +29,9 @@ jobs:
coverage: xdebug

- name: Install PHP dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
run: |
composer require "pestphp/pest:^${{ matrix.pest }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
- name: Unit Tests
run: composer test:unit -- --coverage-clover ./coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"require": {
"php": "^8.1",
"pestphp/pest": "^2.14"
"pestphp/pest": "^2.14 || ^3.0"
},
"require-dev": {
"phpstan/phpstan": "^1.11.0",
Expand Down

0 comments on commit 8cb2ad8

Please sign in to comment.