File tree Expand file tree Collapse file tree 1 file changed +10
-45
lines changed Expand file tree Collapse file tree 1 file changed +10
-45
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,25 @@ jobs:
18
18
unit-tests :
19
19
services :
20
20
sqlserver :
21
- image : mariadb
21
+ image : ${{ matrix.SQL }}
22
22
ports :
23
23
- 3306:3306
24
24
env :
25
25
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 }}
27
27
container :
28
28
image : domjudge/gitlabci:24.04
29
29
strategy :
30
30
matrix :
31
31
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" --health-interval=10s --health-timeout=5s --health-retries=3
35
+ include :
36
+ - PHPVERSION : 8.4
37
+ TEST : UNIT
38
+ SQL : mysql
39
+ SQL_OPTIONS : --mysql-native-password --authentication_policy=mysql_native_password
33
40
runs-on : ubuntu-latest
34
41
steps :
35
42
- uses : actions/checkout@v4
54
61
with :
55
62
name : unit-test-output
56
63
path : /tmp/artifacts
57
- # .unit_job:
58
- # script:
59
- # - set -eux
60
- # - if [ -z ${PHPVERSION+x} ]; then export PHPVERSION=8.1; fi
61
- # - if [ -z ${TEST+x} ]; then export TEST="UNIT"; fi
62
- # - if [ "$TEST" = "UNIT" ] && [ "$CRAWL_SHADOW_MODE" != "0" ]; then exit 0; fi
63
- # - if [ "$TEST" = "E2E" ] && [ "$CRAWL_SHADOW_MODE" != "0" ] && [ "$CI_COMMIT_BRANCH" != "main" ]; then exit 0; fi
64
- # - export CRAWL_SHADOW_MODE
65
- # - ./gitlab/unit-tests.sh $PHPVERSION $TEST
66
- # artifacts:
67
- # when: always
68
- # paths:
69
- # - unit-tests.xml
70
- # - coverage-html
71
- # - deprecation.txt
72
- # - duration
73
- # - gitlabartifacts
74
- # reports:
75
- # junit:
76
- # - unit-tests.xml
77
- #
78
- # run unit tests:
79
- # only:
80
- # - main
81
- # - /^[0-9].[0-9]$/
82
- # extends: [.mariadb_job,.phpsupported_job,.unit_job]
83
- #
84
- # run unit tests (PR):
85
- # except:
86
- # - main
87
- # - /^[0-9].[0-9]$/
88
- # extends: [.mariadb_job,.phpsupported_job_pr,.unit_job]
89
- #
90
- # run unit tests (MySQL):
91
- # only:
92
- # - main
93
- # - /^[0-9].[0-9]$/
94
- # extends: [.mysql_job,.unit_job]
95
- # parallel:
96
- # matrix:
97
- # - TEST: ["E2E","Unit"]
98
- # CRAWL_SHADOW_MODE: ["0"]
You can’t perform that action at this time.
0 commit comments