Skip to content

Commit cfa8097

Browse files
authored
Add tests for PHP 8.5 (#29)
* Simplify dependancies * Add PHP 8.5 * Add exclude-block * Make test matrix more readable * Another test * Yet another test
1 parent 3c952b8 commit cfa8097

2 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/workflows/test.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,26 @@ jobs:
3232
run: "composer normalize --dry-run"
3333

3434
tests:
35-
runs-on: ${{ matrix.os }}
35+
runs-on: ubuntu-latest
3636

3737
strategy:
38+
fail-fast: false
3839
matrix:
39-
os: [ubuntu-latest]
40-
laravel:
41-
- 11.*
42-
- 12.*
43-
php:
44-
- 8.3
45-
- 8.4
46-
dependency-version: [prefer-stable]
47-
48-
name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} (${{ matrix.os }})
40+
include:
41+
- laravel: '11.*'
42+
php: '8.2'
43+
testbench: '^9.0'
44+
- laravel: '12.*'
45+
php: '8.3'
46+
testbench: '^10.0'
47+
- laravel: '12.*'
48+
php: '8.4'
49+
testbench: '^10.0'
50+
- laravel: '12.*'
51+
php: '8.5'
52+
testbench: '^10.0'
53+
54+
name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} (ubuntu-latest)
4955

5056
steps:
5157
- name: Checkout code
@@ -60,7 +66,7 @@ jobs:
6066
run: composer self-update --2
6167

6268
- name: Install dependencies
63-
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-progress
69+
run: composer require --dev "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-progress
6470

6571
- name: Execute tests
6672
run: composer test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
},
1919
"require-dev": {
2020
"ergebnis/composer-normalize": "^2.43",
21-
"orchestra/testbench": "^9.0 || ^10",
22-
"pestphp/pest": "^2.0 || ^3.0",
21+
"orchestra/testbench": "^9.0 || ^10.0 || ^11.0",
22+
"pestphp/pest": "^3.0 || ^4.0",
2323
"phpstan/phpstan": "^1.10",
24-
"phpunit/phpunit": "^10 || ^11.5.3",
24+
"phpunit/phpunit": "^11.5.3 || ^12.3",
2525
"squizlabs/php_codesniffer": "^3.5"
2626
},
2727
"suggest": {

0 commit comments

Comments
 (0)