Skip to content

Commit 891d63e

Browse files
committed
Update GitHub Actions for Laravel 11
1 parent 95f6c84 commit 891d63e

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/tests.yml

+27-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ on:
77
jobs:
88
laravel:
99
runs-on: ubuntu-latest
10+
11+
1012
strategy:
1113
fail-fast: true
1214
matrix:
13-
laravel: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
14-
php: [ 7.2 ]
15+
laravel: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*', '11.*']
16+
php: [7.2, '8.2']
1517
include:
1618
- laravel: 6.*
1719
php: 7.3
@@ -43,33 +45,47 @@ jobs:
4345
php: 8.1
4446
- laravel: 10.*
4547
php: 8.2
48+
- laravel: 11.*
49+
php: '8.2'
50+
exclude:
51+
- laravel: 11.*
52+
php: 7.2
53+
54+
4655
name: Tests for Laravel ${{ matrix.laravel }} on PHP ${{ matrix.php }}
56+
57+
4758
steps:
4859
- name: Checkout code
4960
uses: actions/checkout@v2
5061

62+
5163
- name: Setup PHP
5264
uses: shivammathur/setup-php@v2
5365
with:
5466
php-version: ${{ matrix.php }}
5567
tools: composer:v2
5668
coverage: xdebug
5769

70+
5871
- name: Install dependencies
5972
run: |
6073
composer require laravel/laravel:"${{ matrix.laravel }}" --dev --no-update
6174
composer install --prefer-dist --no-interaction --no-progress
6275
76+
6377
- name: Run tests
6478
run: composer test-laravel
6579

6680
lumen:
6781
runs-on: ubuntu-latest
82+
83+
6884
strategy:
6985
fail-fast: true
7086
matrix:
71-
lumen: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
72-
php: [ 7.2 ]
87+
lumen: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*']
88+
php: [7.2, '8.2']
7389
include:
7490
- lumen: 6.*
7591
php: 7.3
@@ -93,22 +109,29 @@ jobs:
93109
php: 8.1
94110
- lumen: 9.*
95111
php: 8.2
112+
113+
96114
name: Tests for Lumen ${{ matrix.lumen }} on PHP ${{ matrix.php }}
115+
116+
97117
steps:
98118
- name: Checkout code
99119
uses: actions/checkout@v2
100120

121+
101122
- name: Setup PHP
102123
uses: shivammathur/setup-php@v2
103124
with:
104125
php-version: ${{ matrix.php }}
105126
tools: composer:v2
106127
coverage: xdebug
107128

129+
108130
- name: Install dependencies
109131
run: |
110132
composer require laravel/lumen:"${{ matrix.lumen }}" --dev --no-update
111133
composer install --prefer-dist --no-interaction --no-progress
112134
135+
113136
- name: Run tests
114137
run: composer test-lumen

0 commit comments

Comments
 (0)