1
1
name : run-table-tests
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ - push
5
+ - pull_request
4
6
5
7
jobs :
6
8
table-test :
7
9
runs-on : ubuntu-latest
10
+
8
11
strategy :
9
12
fail-fast : true
10
13
matrix :
11
14
php : [8.4, 8.3, 8.2]
12
- laravel : [11.0, 10 .0]
15
+ laravel : [10.0, 11.0, 12 .0]
13
16
db : [mysql, postgres, sqlite]
14
17
ssr : [true, false]
15
18
dependency-version : [prefer-lowest, prefer-stable]
16
19
include :
20
+ - laravel : 12.0
21
+ testbench : 10.*
17
22
- laravel : 11.0
18
23
testbench : 9.*
19
24
- laravel : 10.0
20
25
testbench : 8.*
26
+
21
27
exclude :
22
28
- dependency-version : prefer-lowest
23
29
ssr : true
@@ -68,20 +74,19 @@ jobs:
68
74
env :
69
75
cache-name : cache-node-modules
70
76
with :
71
- # npm cache files are stored in `~/.npm` on Linux/macOS
72
77
path : ~/.npm
73
78
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
74
79
restore-keys : |
75
80
${{ runner.os }}-build-${{ env.cache-name }}-
76
81
${{ runner.os }}-build-
77
82
${{ runner.os }}-
78
83
79
- - if : ${{ steps.cache-npm.outputs.cache-hit == 'false' }}
84
+ - if : " ${{ steps.cache-npm.outputs.cache-hit == 'false' }}"
80
85
name : List the state of node modules
81
86
continue-on-error : true
82
87
run : npm list
83
88
84
- - name : " Install locked dependencies with npm"
89
+ - name : Install locked dependencies with npm
85
90
run : |
86
91
npm ci --ignore-scripts
87
92
@@ -99,19 +104,19 @@ jobs:
99
104
coverage : none
100
105
101
106
- name : Prepare environment file (MySQL)
102
- if : ${{ matrix.db == 'mysql' }}
107
+ if : " ${{ matrix.db == 'mysql' }}"
103
108
run : |
104
109
cd app
105
110
cp .env.example.mysql .env
106
111
107
112
- name : Prepare environment file (PostgreSQL)
108
- if : ${{ matrix.db == 'postgres' }}
113
+ if : " ${{ matrix.db == 'postgres' }}"
109
114
run : |
110
115
cd app
111
116
cp .env.example.postgres .env
112
117
113
118
- name : Prepare environment file (SQLite)
114
- if : ${{ matrix.db == 'sqlite' }}
119
+ if : " ${{ matrix.db == 'sqlite' }}"
115
120
run : |
116
121
cd app
117
122
cp .env.example .env
@@ -140,15 +145,15 @@ jobs:
140
145
cd app
141
146
sed -i -e "s|SPLADE_SSR_ENABLED=false|SPLADE_SSR_ENABLED=true|g" .env
142
147
node bootstrap/ssr/ssr.mjs &
143
- if : matrix.ssr == true
148
+ if : " matrix.ssr == true"
144
149
145
150
- name : Migrate DB and Run Laravel Server (MySQL)
146
151
run : |
147
152
cd app
148
153
php artisan storage:link
149
154
php artisan migrate:fresh --seed
150
155
php artisan serve &
151
- if : ${{ matrix.db == 'mysql' }}
156
+ if : " ${{ matrix.db == 'mysql' }}"
152
157
env :
153
158
DB_PORT : ${{ job.services.mysql.ports[3306] }}
154
159
@@ -158,20 +163,20 @@ jobs:
158
163
php artisan storage:link
159
164
php artisan migrate:fresh --seed
160
165
php artisan serve &
161
- if : ${{ matrix.db == 'postgres' }}
166
+ if : " ${{ matrix.db == 'postgres' }}"
162
167
env :
163
168
DB_PORT : ${{ job.services.postgres.ports[5432] }}
164
169
165
170
- name : Migrate DB and Run Laravel Server (SQLite)
166
- if : ${{ matrix.db == 'sqlite' }}
171
+ if : " ${{ matrix.db == 'sqlite' }}"
167
172
run : |
168
173
cd app
169
174
php artisan storage:link
170
175
php artisan migrate:fresh --seed
171
176
php artisan serve &
172
177
173
178
- name : Execute Dusk tests (only table tests - MySQL)
174
- if : ${{ matrix.db == 'mysql' }}
179
+ if : " ${{ matrix.db == 'mysql' }}"
175
180
uses : nick-invision/retry@v3
176
181
with :
177
182
timeout_minutes : 10
@@ -182,7 +187,7 @@ jobs:
182
187
DB_PORT : ${{ job.services.mysql.ports[3306] }}
183
188
184
189
- name : Execute Dusk tests (only table tests - PostgreSQL)
185
- if : ${{ matrix.db == 'postgres' }}
190
+ if : " ${{ matrix.db == 'postgres' }}"
186
191
uses : nick-invision/retry@v3
187
192
with :
188
193
timeout_minutes : 10
@@ -193,7 +198,7 @@ jobs:
193
198
DB_PORT : ${{ job.services.postgres.ports[5432] }}
194
199
195
200
- name : Execute Dusk tests (only table tests - SQLite)
196
- if : ${{ matrix.db == 'sqlite' }}
201
+ if : " ${{ matrix.db == 'sqlite' }}"
197
202
uses : nick-invision/retry@v3
198
203
with :
199
204
timeout_minutes : 10
0 commit comments