Skip to content

Commit 1b123cb

Browse files
committed
Fix CI: update PHP matrix to 8.2+ for Pest v3 compatibility
Pest v3 requires PHP 8.2+. The default template had PHP 8.1 in the matrix which caused composer install to fail. Also adds Composer dependency caching and PHP 8.4 to the matrix.
1 parent 35024d1 commit 1b123cb

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php: ['8.1', '8.2', '8.3']
14+
php: ['8.2', '8.3', '8.4']
1515

1616
name: PHP ${{ matrix.php }}
1717

@@ -24,8 +24,16 @@ jobs:
2424
php-version: ${{ matrix.php }}
2525
coverage: none
2626

27+
- name: Cache Composer dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: vendor
31+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-composer-
34+
2735
- name: Install dependencies
28-
run: composer install --no-interaction --prefer-dist
36+
run: composer install --no-progress --no-interaction --prefer-dist
2937

3038
- name: Run tests
3139
run: vendor/bin/pest

0 commit comments

Comments
 (0)