Skip to content

Commit 1db7d64

Browse files
committed
Use right health command
1 parent 5cbc0cf commit 1db7d64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323
- 3306:3306
2424
env:
2525
MYSQL_ROOT_PASSWORD: root
26-
options: ${{ matrix.SQL_OPTIONS }}
26+
options: ${{ matrix.SQL_OPTIONS }} --health-interval=10s --health-timeout=5s --health-retries=3
2727
container:
2828
image: domjudge/gitlabci:24.04
2929
strategy:
3030
matrix:
3131
PHPVERSION: [8.1]
3232
TEST: [UNIT,E2E]
3333
CRAWL_SHADOW_MODE: [0]
34-
SQL_OPTIONS: [--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3]
34+
SQL_OPTIONS: [--health-cmd="healthcheck.sh --connect --innodb_initialized"]
3535
include:
3636
- PHPVERSION: 8.4
3737
TEST: UNIT
3838
SQL: mysql
39-
SQL_OPTIONS: --mysql-native-password --authentication_policy=mysql_native_password
39+
SQL_OPTIONS: --health-cmd="mysqladmin ping"
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)