Skip to content

Commit 278422c

Browse files
committed
run MariaDB/Valkey tests in cron only
1 parent 8fcd5a0 commit 278422c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test-unit.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
php -r '(new PDO("pgsql:host=postgres;dbname=test_db", "test_user", "test_pass"))->exec("ALTER ROLE test_user CONNECTION LIMIT 1");'
123123
if [ -n "$LOG_COVERAGE" ]; then mkdir coverage; fi
124124
125-
- name: "Run tests 1/2"
125+
- name: "Run tests"
126126
env:
127127
MYSQL_DSN: "mysql:host=mysql;dbname=test_db"
128128
MYSQL_USER: test_user
@@ -135,7 +135,8 @@ jobs:
135135
run: |
136136
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) --fail-on-warning --fail-on-risky $(if vendor/bin/phpunit --version | grep -q '^PHPUnit 9\.'; then echo -v; else echo --fail-on-notice --fail-on-deprecation --display-notices --display-deprecations --display-phpunit-deprecations --display-warnings --display-errors --display-incomplete --display-skipped; fi)
137137
138-
- name: "Run tests 2/2"
138+
- name: "Run tests /w MariaDB and Valkey (only for cron)"
139+
if: (success() || failure()) && github.event_name == 'schedule'
139140
env:
140141
MYSQL_DSN: "mysql:host=mariadb;dbname=test_db"
141142
MYSQL_USER: test_user

0 commit comments

Comments
 (0)