File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,20 @@ jobs:
1414 strategy :
1515 matrix :
1616 SQL_ISOLATION : ['REPEATABLE-READ', 'SERIALIZABLE']
17+ SQL : [mariadb, mysql]
1718 include :
18- - sql : mariadb
19- sql_options : --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
20- - sql : mysql
21- sql_options : --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
19+ - SQL : mysql
20+ SQL_options : --health-cmd="mysqladmin ping"
21+ - SQL : mariadb
22+ SQL_options : --health-cmd="healthcheck.sh --connect --innodb_initialized"
23+ SQL_ISOLATION : ' REPEATABLE-READ'
2224 container :
2325 image : domjudge/gitlabci:24.04
2426 options : --privileged --cgroupns=host --init
2527 services :
2628 sqlserver :
27- image : ${{ matrix.sql }}
28- options : ${{ matrix.sql_options }}
29+ image : ${{ matrix.SQL }}
30+ options : ${{ matrix.SQL_options }} --health-interval=10s --health-timeout=5s --health-retries=3
2931 ports :
3032 - 3306:3306
3133 env :
@@ -91,13 +93,13 @@ jobs:
9193 if : ${{ !cancelled() }}
9294 uses : actions/upload-artifact@v4
9395 with :
94- name : DB-dump-${{ matrix.SQL_ISOLATION }}-${{ matrix.sql }}
96+ name : DB-dump-${{ matrix.SQL_ISOLATION }}-${{ matrix.SQL }}
9597 path : /tmp/db.sql
9698 - name : Upload all logs/artifacts
9799 if : ${{ !cancelled() }}
98100 uses : actions/upload-artifact@v4
99101 with :
100- name : Logs-${{ matrix.SQL_ISOLATION }}-${{ matrix.sql }}
102+ name : Logs-${{ matrix.SQL_ISOLATION }}-${{ matrix.SQL }}
101103 path : |
102104 /var/log/nginx
103105 /opt/domjudge/domserver/webapp/var/log/*.log
You can’t perform that action at this time.
0 commit comments