Skip to content

Commit 53b24c0

Browse files
committed
Update GitHub Actions for Laravel 11
1 parent c16afaf commit 53b24c0

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,38 @@ on:
44
push:
55
branches:
66
- main
7-
87
pull_request:
9-
types: [ opened, synchronize, reopened ]
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
1012

1113
jobs:
1214
test:
1315
runs-on: ubuntu-latest
14-
if: "!contains(github.event.head_commit.message, 'ci skip')"
16+
17+
if: !contains(github.event.head_commit.message, 'ci skip')
18+
1519
strategy:
1620
fail-fast: false
1721
matrix:
18-
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
19-
laravel: [ 7.*, 8.*, 9.* , 10.*]
20-
dependency-version: [ prefer-lowest, prefer-stable ]
22+
php: [7.2, 7.3, 7.4, 8.0, 8.1, '8.2']
23+
laravel: ['7.*', '8.*', '9.*', '10.*', '11.*']
24+
dependency-version: [prefer-lowest, prefer-stable]
2125
include:
2226
- laravel: 10.*
2327
testbench: 8.*
2428
- laravel: 7.*
2529
testbench: 5.*
26-
2730
- laravel: 7.*
2831
dependency-version: prefer-lowest
2932
composer-version: --1
30-
3133
- laravel: 8.*
3234
testbench: 6.*
33-
3435
- laravel: 9.*
3536
testbench: 7.*
36-
37+
- laravel: 11.*
38+
testbench: 9.*
3739
exclude:
3840
- laravel: 10.*
3941
php: 7.2
@@ -45,25 +47,27 @@ jobs:
4547
php: 8.0
4648
- laravel: 7.*
4749
php: 8.1
48-
4950
- laravel: 8.*
5051
php: 8.1
5152
dependency-version: prefer-lowest
52-
53-
# Laravel 8 requires PHP 7.3.
5453
- laravel: 8.*
5554
php: 7.2
56-
57-
# Laravel 9 requires PHP 8.
5855
- laravel: 9.*
5956
php: 7.2
60-
6157
- laravel: 9.*
6258
php: 7.3
63-
6459
- laravel: 9.*
6560
php: 7.4
66-
61+
- laravel: 11.*
62+
php: 7.2
63+
- laravel: 11.*
64+
php: 7.3
65+
- laravel: 11.*
66+
php: 7.4
67+
- laravel: 11.*
68+
php: 8.0
69+
- laravel: 11.*
70+
php: 8.1
6771

6872
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
6973

@@ -91,4 +95,4 @@ jobs:
9195
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
9296
9397
- name: Execute tests
94-
run: vendor/bin/phpunit
98+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)