Skip to content

Commit d44cbdb

Browse files
Michael Vasseurvmcj
authored andcommitted
Allow testing against MySQL
1 parent b601440 commit d44cbdb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,25 @@ jobs:
1818
unit-tests:
1919
services:
2020
sqlserver:
21-
image: mariadb
21+
image: ${{ matrix.SQL }}
2222
ports:
2323
- 3306:3306
2424
env:
2525
MYSQL_ROOT_PASSWORD: root
26-
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
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]
32-
TEST: [UNIT]
32+
TEST: [UNIT,E2E]
33+
CRAWL_SHADOW_MODE: [0]
34+
SQL_OPTIONS: [--health-cmd="healthcheck.sh --connect --innodb_initialized"]
35+
include:
36+
- PHPVERSION: 8.4
37+
TEST: UNIT
38+
SQL: mysql
39+
SQL_OPTIONS: --health-cmd="mysqladmin ping"
3340
runs-on: ubuntu-latest
3441
steps:
3542
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)