File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ elif [ "$version" = "balloon" ]; then
143
143
elif [ " $version " = " admin" ]; then
144
144
# Add admin to admin user
145
145
mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 1);" $DATABASE_NAME
146
- elif [ " $version " = " all" ]; then
146
+ elif [ " $version " = " all" ] || [ " $version " = " unit " ] ; then
147
147
mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 1);" $DATABASE_NAME
148
148
mysql_root " INSERT INTO userrole (userid, roleid) VALUES (1, 3);" $DATABASE_NAME
149
149
mysql_root " UPDATE user SET teamid = 1 WHERE userid = 1;" $DATABASE_NAME
Original file line number Diff line number Diff line change @@ -24,24 +24,21 @@ jobs:
24
24
MYSQL_USER : domjudge
25
25
MYSQL_PASSWORD : domjudge
26
26
options : --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
27
- strategy :
28
- matrix :
29
- PHPVERSION : [8.1]
30
- TEST : [Unit, E2E]
31
- CRAWL_SHADOW_MODE : [0]
32
- SQL_OPTIONS : [--health-cmd="healthcheck.sh --connect --innodb_initialized"]
33
- SQL : [mariadb]
34
- # include:
35
- # - PHPVERSION: 8.4
36
- # TEST: Unit
37
- # SQL: mysql
38
- # SQL_OPTIONS: --health-cmd="mysqladmin ping"
39
27
steps :
40
28
- uses : actions/checkout@v4
41
- - name : Download latest codecov upload script
42
- run : wget https://codecov.io/bash -O newcodecov
43
- - name : Detect changes to manually verify
44
- run : diff newcodecov .github/jobs/uploadcodecov.sh
29
+ - name : info
30
+ run : |
31
+ cat /proc/cmdline && echo &&
32
+ cat /proc/mounts && echo &&
33
+ ls -al /sys/fs/cgroup && echo &&
34
+ uname -a && echo &&
35
+ stat -fc %T /sys/fs/cgroup && echo &&
36
+ cat /proc/self/cgroup && echo &&
37
+ cat /proc/cpuinfo
38
+ - name : pstree
39
+ run : pstree -p
40
+ - name : Install DOMjudge
41
+ run : .github/jobs/baseinstall.sh unit install test
45
42
- name : Run the unit tests
46
43
run : .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }}
47
44
- name : Upload artifact for debugging
56
53
with :
57
54
files : |
58
55
unit-tests.xml
56
+ - name : Download latest codecov upload script
57
+ run : wget https://codecov.io/bash -O newcodecov
58
+ - name : Detect changes to manually verify
59
+ run : diff newcodecov .github/jobs/uploadcodecov.sh
59
60
60
61
check-static-codecov :
61
62
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments