4
4
push :
5
5
branches :
6
6
- master
7
- - ' *.x'
7
+ - *.x
8
8
pull_request :
9
9
schedule :
10
10
- cron : ' 0 0 * * *'
@@ -13,18 +13,22 @@ jobs:
13
13
tests :
14
14
runs-on : ubuntu-22.04
15
15
16
+
16
17
strategy :
17
18
fail-fast : true
18
19
matrix :
19
20
php : [8.2, 8.3, 8.4]
20
- laravel : [11]
21
+ laravel : [11, '12']
22
+
21
23
22
24
name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
23
25
26
+
24
27
steps :
25
28
- name : Checkout code
26
29
uses : actions/checkout@v4
27
30
31
+
28
32
- name : Setup PHP
29
33
uses : shivammathur/setup-php@v2
30
34
with :
@@ -34,25 +38,30 @@ jobs:
34
38
tools : composer:v2
35
39
coverage : none
36
40
41
+
37
42
- name : Install dependencies
38
43
run : |
39
44
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
40
45
composer update --prefer-dist --no-interaction --no-progress
41
46
47
+
42
48
- name : Execute tests
43
49
run : vendor/bin/phpunit --display-deprecations --fail-on-deprecation
44
50
45
51
stub-tests :
46
52
runs-on : ubuntu-22.04
47
53
54
+
48
55
strategy :
49
56
fail-fast : true
50
57
matrix :
51
58
stack : [inertia, livewire]
52
- laravel : ['11.x-dev']
59
+ laravel : [11.x-dev, 12.x]
60
+
53
61
54
62
name : Test Stubs - Laravel ${{ matrix.laravel }} - ${{ matrix.stack }}
55
63
64
+
56
65
steps :
57
66
- name : Setup PHP
58
67
uses : shivammathur/setup-php@v2
@@ -63,30 +72,36 @@ jobs:
63
72
tools : composer:v2
64
73
coverage : none
65
74
75
+
66
76
- name : Setup Laravel
67
77
run : |
68
78
composer create-project laravel/laravel:^${{ matrix.laravel }} .
69
79
composer require laravel/jetstream:@dev --no-interaction --no-update
70
80
composer config repositories.jetstream '{"type": "path", "url": "jetstream"}' --file composer.json
71
81
82
+
72
83
- name : Checkout code
73
84
uses : actions/checkout@v4
74
85
with :
75
- path : ' jetstream'
86
+ path : jetstream
87
+
76
88
77
89
- name : Install Jetstream
78
90
run : |
79
91
composer update "laravel/jetstream" --prefer-dist --no-interaction --no-progress -W
80
92
php artisan jetstream:install ${{ matrix.stack }} --teams --api --verification --pest
81
93
94
+
82
95
- name : Install NPM dependencies
83
96
run : npm i
84
97
98
+
85
99
- name : Compile assets
86
100
run : npm run build
87
101
102
+
88
103
- name : Execute tests
89
104
run : vendor/bin/pest
90
105
env :
91
106
DB_CONNECTION : sqlite
92
- DB_DATABASE : " :memory:"
107
+ DB_DATABASE : :memory:
0 commit comments