@@ -156,11 +156,13 @@ jobs:
156
156
if [ -n "$LOG_COVERAGE" ]; then mkdir coverage; fi
157
157
158
158
- name : " Run tests: SQLite"
159
+ if : success() || failure()
159
160
run : |
160
161
php -d opcache.enable_cli=1 vendor/bin/phpunit --exclude-group none $(if [ -n "$LOG_COVERAGE" ]; then echo --coverage-text; else echo --no-coverage; fi) -v
161
162
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-sqlite.cov; fi
162
163
163
164
- name : " Run tests: MySQL - PDO"
165
+ if : success() || failure()
164
166
env :
165
167
DB_DSN : " pdo_mysql:host=mysql;dbname=atk4_test"
166
168
DB_USER : atk4_test_user
@@ -170,6 +172,7 @@ jobs:
170
172
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql-pdo.cov; fi
171
173
172
174
- name : " Run tests: MySQL - mysqli"
175
+ if : success() || failure()
173
176
env :
174
177
DB_DSN : " mysqli:host=mysql;dbname=atk4_test"
175
178
DB_USER : atk4_test_user
@@ -179,6 +182,7 @@ jobs:
179
182
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql-mysqli.cov; fi
180
183
181
184
- name : " Run tests: MySQL 5.6"
185
+ if : success() || failure()
182
186
env :
183
187
DB_DSN : " mysql:host=mysql56;dbname=atk4_test"
184
188
DB_USER : atk4_test_user
@@ -188,6 +192,7 @@ jobs:
188
192
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql56.cov; fi
189
193
190
194
- name : " Run tests: MariaDB"
195
+ if : success() || failure()
191
196
env :
192
197
DB_DSN : " mysql:host=mariadb;dbname=atk4_test"
193
198
DB_USER : atk4_test_user
@@ -197,6 +202,7 @@ jobs:
197
202
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mariadb.cov; fi
198
203
199
204
- name : " Run tests: PostgreSQL"
205
+ if : success() || failure()
200
206
env :
201
207
DB_DSN : " pgsql:host=postgres;dbname=atk4_test"
202
208
DB_USER : atk4_test_user
@@ -206,6 +212,7 @@ jobs:
206
212
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-postgres.cov; fi
207
213
208
214
- name : " Run tests: MSSQL"
215
+ if : success() || failure()
209
216
env :
210
217
DB_DSN : " sqlsrv:host=mssql;dbname=master;driverOptions[TrustServerCertificate]=1"
211
218
DB_USER : sa
@@ -215,7 +222,7 @@ jobs:
215
222
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mssql.cov; fi
216
223
217
224
- name : " Run tests: Oracle - PDO (only for coverage or cron)"
218
- if : env.LOG_COVERAGE || github.event_name == 'schedule'
225
+ if : (success() || failure()) && env.LOG_COVERAGE || github.event_name == 'schedule'
219
226
env :
220
227
DB_DSN : " pdo_oci:dbname=oracle/xe"
221
228
DB_USER : system
@@ -226,6 +233,7 @@ jobs:
226
233
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-oracle-pdo.cov; fi
227
234
228
235
- name : " Run tests: Oracle - OCI8"
236
+ if : success() || failure()
229
237
env :
230
238
DB_DSN : " oci8:dbname=oracle/xe"
231
239
DB_USER : system
0 commit comments