Skip to content

Commit f2294d7

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent 74b8b3c commit f2294d7

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

.github/workflows/run-tests-mysql.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ jobs:
1616
MYSQL_DATABASE: db_test_laravel
1717
ports:
1818
- 33306:3306
19-
options: >-
20-
--health-cmd="mysqladmin ping"
21-
--health-interval=10s
22-
--health-timeout=5s
23-
--health-retries=3
19+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2420

2521
strategy:
2622
fail-fast: false
2723
matrix:
2824
operating-system: [ubuntu-latest]
2925
php-versions: ['8.1', '8.2', '8.3']
3026
dependency-stability: [prefer-stable]
31-
laravel: ['9.*', '10.*', '11.*']
27+
laravel: ['9.*', '10.*', '11.*', '12.*']
3228
include:
3329
- laravel: 9.*
3430
testbench: 7.*
3531
- laravel: 10.*
3632
testbench: 8.*
3733
- laravel: 11.*
3834
testbench: 9.*
35+
- laravel: 12.*
36+
testbench: 10.*
3937
exclude:
4038
- laravel: 10.*
4139
php-versions: 8.0
4240
- laravel: 11.*
4341
php-versions: 8.1
42+
- laravel: 12.*
43+
php-versions: '8.1'
4444

4545
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
4646

.github/workflows/run-tests-postgres.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,31 @@ jobs:
1717
POSTGRES_DB: db_test_laravel
1818
ports:
1919
- 55432:5432
20-
options: >-
21-
--health-cmd pg_isready
22-
--health-interval 10s
23-
--health-timeout 5s
24-
--health-retries 5
20+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2521

2622
strategy:
2723
fail-fast: false
2824
matrix:
2925
operating-system: [ubuntu-latest]
3026
php-versions: ['8.1', '8.2', '8.3']
3127
dependency-stability: [prefer-stable]
32-
laravel: ['9.*', '10.*', '11.*']
28+
laravel: ['9.*', '10.*', '11.*', '12.*']
3329
include:
3430
- laravel: 9.*
3531
testbench: 7.*
3632
- laravel: 10.*
3733
testbench: 8.*
3834
- laravel: 11.*
3935
testbench: 9.*
36+
- laravel: 12.*
37+
testbench: 10.*
4038
exclude:
4139
- laravel: 10.*
4240
php-versions: 8.0
4341
- laravel: 11.*
4442
php-versions: 8.1
43+
- laravel: 12.*
44+
php-versions: '8.1'
4545

4646
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
4747

.github/workflows/run-tests.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
operating-system: [ubuntu-latest]
1515
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1616
dependency-stability: [prefer-stable]
17-
laravel: ['6.*', '7.*', '8.*', '9.*', '10.*', '11.*']
17+
laravel: ['6.*', '7.*', '8.*', '9.*', '10.*', '11.*', '12.*']
1818
include:
1919
- laravel: 6.*
2020
testbench: 4.*
@@ -75,6 +75,16 @@ jobs:
7575
php-versions: 7.3
7676
- laravel: 11.*
7777
php-versions: 7.4
78+
- laravel: 12.*
79+
php-versions: '7.2'
80+
- laravel: 12.*
81+
php-versions: '7.3'
82+
- laravel: 12.*
83+
php-versions: '7.4'
84+
- laravel: 12.*
85+
php-versions: '8.0'
86+
- laravel: 12.*
87+
php-versions: '8.1'
7888

7989
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
8090

@@ -107,5 +117,5 @@ jobs:
107117
- name: Execute tests (Unit and Feature tests) via PHPUnit
108118
env:
109119
DB_CONNECTION: sqlite
110-
DB_DATABASE: ":memory:"
120+
DB_DATABASE: :memory:
111121
run: vendor/bin/phpunit --testdox

0 commit comments

Comments
 (0)