Skip to content

Commit 8e9a75b

Browse files
committed
update tests workflow to test on both pest2 and pest3
1 parent ad313ba commit 8e9a75b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: .github/workflows/tests.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ jobs:
99
matrix:
1010
os: [ubuntu-latest, macos-latest]
1111
php: ['8.1', '8.2', '8.3']
12+
pest: ['2.*', '3.*']
1213
dependency-version: [prefer-lowest, prefer-stable]
1314

14-
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
15+
name: PHP ${{ matrix.php }} - PEST ${{ matrix.pest }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
1516

1617
steps:
1718
- name: Checkout
@@ -25,7 +26,9 @@ jobs:
2526
coverage: xdebug
2627

2728
- name: Install PHP dependencies
28-
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
29+
run: |
30+
composer require "pestphp/pest:${{ matrix.pest }}" --no-interaction --no-update
31+
composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
2932
3033
- name: Unit Tests
3134
run: composer test:unit -- --coverage-clover ./coverage.xml
@@ -35,4 +38,4 @@ jobs:
3538
with:
3639
token: ${{ secrets.CODECOV_TOKEN }}
3740
files: ./coverage.xml
38-
verbose: true
41+
verbose: true

0 commit comments

Comments
 (0)