Skip to content

Commit 53dbe7c

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent 69ab246 commit 53dbe7c

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
jobs:
88
laravel:
99
runs-on: ubuntu-latest
10+
11+
1012
strategy:
1113
matrix:
12-
laravel: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
13-
php: [ 7.2 ]
14+
laravel: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*', '12.*']
15+
php: [7.2, '8.2', '8.3', '8.4']
1416
include:
1517
- laravel: 6.*
1618
php: 7.3
@@ -48,32 +50,46 @@ jobs:
4850
php: 8.2
4951
- laravel: 11.*
5052
php: 8.3
53+
- laravel: 12.*
54+
php: '8.2'
55+
exclude:
56+
- laravel: 12.*
57+
php: 7.2
58+
59+
5160
name: PHPUnit on Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php }}
61+
62+
5263
steps:
5364
- name: Checkout code
5465
uses: actions/checkout@v2
5566

67+
5668
- name: Setup PHP
5769
uses: shivammathur/setup-php@v2
5870
with:
5971
php-version: ${{ matrix.php }}
6072
tools: composer:v2
6173

74+
6275
- name: Install dependencies
6376
run: |
6477
composer require laravel/laravel:"${{ matrix.laravel }}" --dev --no-update
6578
composer install --prefer-dist --no-interaction --no-progress
6679
80+
6781
- name: Run tests
6882
run: composer test-laravel
6983

7084
lumen:
7185
runs-on: ubuntu-latest
86+
87+
7288
strategy:
7389
fail-fast: true
7490
matrix:
75-
lumen: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
76-
php: [ 7.2 ]
91+
lumen: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*']
92+
php: [7.2, '8.2', '8.3', '8.4']
7793
include:
7894
- lumen: 6.*
7995
php: 7.3
@@ -97,21 +113,28 @@ jobs:
97113
php: 8.1
98114
- lumen: 9.*
99115
php: 8.2
116+
117+
100118
name: PHPUnit on Lumen ${{ matrix.lumen }} / PHP ${{ matrix.php }}
119+
120+
101121
steps:
102122
- name: Checkout code
103123
uses: actions/checkout@v2
104124

125+
105126
- name: Setup PHP
106127
uses: shivammathur/setup-php@v2
107128
with:
108129
php-version: ${{ matrix.php }}
109130
tools: composer:v2
110131

132+
111133
- name: Install dependencies
112134
run: |
113135
composer require laravel/lumen:"${{ matrix.lumen }}" --dev --no-update
114136
composer install --prefer-dist --no-interaction --no-progress
115137
138+
116139
- name: Run tests
117140
run: composer test-lumen

0 commit comments

Comments
 (0)