Skip to content

Commit 926d7d8

Browse files
committed
Update CI workflow to remove PHP 8.1 and adjust dependency versions for improved compatibility as pragmatic way to solve "describe()" syntax error on pest 1.0
1 parent 6ab3c9a commit 926d7d8

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest, windows-latest, macos-latest]
23-
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
23+
php: ['8.2', '8.3', '8.4', '8.5']
2424

2525
steps:
2626
- name: Checkout Code
@@ -36,11 +36,7 @@ jobs:
3636
- name: Install Dependencies
3737
uses: ramsey/composer-install@v3
3838
with:
39-
dependency-versions: ${{ matrix.php == '8.1' && 'lowest' || 'highest' }}
40-
41-
- name: Check Code Style (Pint)
42-
run: ./vendor/bin/pint --test
43-
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.3'
39+
dependency-versions: ${{ matrix.php == '8.2' && 'lowest' || 'highest' }}
4440

4541
- name: Run Static Analysis (PHPStan)
4642
run: ./vendor/bin/phpstan analyse --no-progress

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"laravel/pint": "^1.10",
34-
"pestphp/pest": "^1.22 || ^2.0 || ^3.0 || ^4.0",
34+
"pestphp/pest": "^2.0 || ^3.0 || ^4.0",
3535
"phpstan/phpstan": "^2.1",
3636
"phpstan/phpstan-strict-rules": "^2.0",
3737
"phpstan/extension-installer": "^1.4"

0 commit comments

Comments
 (0)