Skip to content

Commit

Permalink
run MariaDB/Valkey tests in cron only
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 5, 2024
1 parent 8fcd5a0 commit 278422c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
php -r '(new PDO("pgsql:host=postgres;dbname=test_db", "test_user", "test_pass"))->exec("ALTER ROLE test_user CONNECTION LIMIT 1");'
if [ -n "$LOG_COVERAGE" ]; then mkdir coverage; fi
- name: "Run tests 1/2"
- name: "Run tests"
env:
MYSQL_DSN: "mysql:host=mysql;dbname=test_db"
MYSQL_USER: test_user
Expand All @@ -135,7 +135,8 @@ jobs:
run: |
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)
- name: "Run tests 2/2"
- name: "Run tests /w MariaDB and Valkey (only for cron)"
if: (success() || failure()) && github.event_name == 'schedule'
env:
MYSQL_DSN: "mysql:host=mariadb;dbname=test_db"
MYSQL_USER: test_user
Expand Down

0 comments on commit 278422c

Please sign in to comment.