Skip to content

Commit c88a5d9

Browse files
committed
always test all DBs
1 parent 661a89b commit c88a5d9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test-unit.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ jobs:
156156
if [ -n "$LOG_COVERAGE" ]; then mkdir coverage; fi
157157
158158
- name: "Run tests: SQLite"
159+
if: success() || failure()
159160
run: |
160161
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
161162
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-sqlite.cov; fi
162163
163164
- name: "Run tests: MySQL - PDO"
165+
if: success() || failure()
164166
env:
165167
DB_DSN: "pdo_mysql:host=mysql;dbname=atk4_test"
166168
DB_USER: atk4_test_user
@@ -170,6 +172,7 @@ jobs:
170172
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql-pdo.cov; fi
171173
172174
- name: "Run tests: MySQL - mysqli"
175+
if: success() || failure()
173176
env:
174177
DB_DSN: "mysqli:host=mysql;dbname=atk4_test"
175178
DB_USER: atk4_test_user
@@ -179,6 +182,7 @@ jobs:
179182
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql-mysqli.cov; fi
180183
181184
- name: "Run tests: MySQL 5.6"
185+
if: success() || failure()
182186
env:
183187
DB_DSN: "mysql:host=mysql56;dbname=atk4_test"
184188
DB_USER: atk4_test_user
@@ -188,6 +192,7 @@ jobs:
188192
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mysql56.cov; fi
189193
190194
- name: "Run tests: MariaDB"
195+
if: success() || failure()
191196
env:
192197
DB_DSN: "mysql:host=mariadb;dbname=atk4_test"
193198
DB_USER: atk4_test_user
@@ -197,6 +202,7 @@ jobs:
197202
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mariadb.cov; fi
198203
199204
- name: "Run tests: PostgreSQL"
205+
if: success() || failure()
200206
env:
201207
DB_DSN: "pgsql:host=postgres;dbname=atk4_test"
202208
DB_USER: atk4_test_user
@@ -206,6 +212,7 @@ jobs:
206212
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-postgres.cov; fi
207213
208214
- name: "Run tests: MSSQL"
215+
if: success() || failure()
209216
env:
210217
DB_DSN: "sqlsrv:host=mssql;dbname=master;driverOptions[TrustServerCertificate]=1"
211218
DB_USER: sa
@@ -215,7 +222,7 @@ jobs:
215222
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mssql.cov; fi
216223
217224
- 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'
219226
env:
220227
DB_DSN: "pdo_oci:dbname=oracle/xe"
221228
DB_USER: system
@@ -226,6 +233,7 @@ jobs:
226233
if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-oracle-pdo.cov; fi
227234
228235
- name: "Run tests: Oracle - OCI8"
236+
if: success() || failure()
229237
env:
230238
DB_DSN: "oci8:dbname=oracle/xe"
231239
DB_USER: system

0 commit comments

Comments
 (0)