Skip to content

Commit 1c6a0b7

Browse files
committed
Update GitHub Actions for Laravel 11
1 parent 3e5b913 commit 1c6a0b7

File tree

1 file changed

+55
-3
lines changed

1 file changed

+55
-3
lines changed

.github/workflows/test.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,105 @@ on: push
44

55
jobs:
66
phpcs:
7+
78
runs-on: ubuntu-latest
9+
10+
11+
812
steps:
913
- uses: actions/checkout@v2
14+
15+
16+
1017
- uses: shivammathur/setup-php@v2
1118
with:
1219
php-version: '8.1'
20+
21+
22+
1323
- run: composer install --no-interaction --prefer-dist
24+
25+
26+
1427
- run: vendor/bin/phpcs
1528

1629
phpstan:
30+
1731
runs-on: ubuntu-latest
32+
33+
34+
1835
steps:
1936
- uses: actions/checkout@v2
37+
38+
39+
2040
- uses: shivammathur/setup-php@v2
2141
with:
2242
php-version: '8.1'
43+
44+
45+
2346
- run: composer install --no-interaction --prefer-dist
47+
48+
49+
2450
- run: vendor/bin/phpstan analyse
2551

2652
phpunit:
2753
strategy:
2854
matrix:
29-
php: [ 8.2, 8.1 ]
30-
laravel: [ 10.*, 9.* ]
31-
os: [ ubuntu-latest ]
55+
php: [8.2, 8.1]
56+
laravel: ['9.*', '10.*', '11.*']
57+
os: [ubuntu-latest]
3258
include:
3359
- laravel: 10.*
3460
testbench: ^8.0
3561
- laravel: 9.*
3662
testbench: ^7.0
63+
- laravel: 11.*
64+
testbench: ^9.0
65+
exclude:
66+
- laravel: 11.*
67+
php: 8.1
68+
3769
runs-on: ${{ matrix.os }}
70+
3871
name: phpunit (P${{ matrix.php }} - L${{ matrix.laravel }})
72+
3973
env:
4074
DB_HOST: 127.0.0.1
75+
76+
77+
4178
steps:
4279
- uses: actions/checkout@v2
80+
81+
82+
4383
- uses: shivammathur/setup-php@v2
4484
with:
4585
php-version: ${{ matrix.php }}
86+
87+
88+
4689
- uses: shogo82148/actions-setup-mysql@v1
4790
with:
4891
mysql-version: '8.0'
4992
user: loadfile
5093
password: loadfile-testing
5194
my-cnf: local_infile=1
95+
96+
97+
5298
- run: mysql -uroot -h127.0.0.1 -e 'create database loadfile'
99+
100+
101+
53102
- run: |
54103
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
55104
composer update --no-interaction --prefer-dist
105+
106+
107+
56108
- run: vendor/bin/phpunit

0 commit comments

Comments
 (0)