File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
export version=" $1 "
6
6
db=${2:- install}
7
- phpversion=" ${3} "
7
+ phpversion=" ${3:- 8.1} "
8
+ # If this script is called from unit-tests.sh, we use the test environment
9
+ export APP_ENV=" ${4:- prod} "
8
10
9
- MYSQL_ROOT_PASSWORD= ${MYSQL_ROOT_PASSWORD :- root}
11
+ show_phpinfo $version
10
12
11
- # If this script is called from unit-tests.sh, we use the test environment
12
- export APP_ENV=" ${3:- prod} "
13
+ MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:- root}
13
14
14
15
# In the test environment, we need to use a different database
15
16
[ " $APP_ENV " = " prod" ] && DATABASE_NAME=domjudge || DATABASE_NAME=domjudge_test
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ export version=$1
8
8
unittest=$2
9
9
[ " $version " = " 8.1" ] && CODECOVERAGE=1 || CODECOVERAGE=0
10
10
11
- show_phpinfo $version
12
-
13
11
# Set up
14
12
export unit=1
15
13
Original file line number Diff line number Diff line change 51
51
- name : pstree
52
52
run : pstree -p
53
53
- name : Install DOMjudge
54
- run : .github/jobs/baseinstall.sh unit install test
54
+ run : .github/jobs/baseinstall.sh unit install ${{ matrix.PHPVERSION }} test
55
55
- name : Check nginx
56
56
run : curl -v https://localhost/domjudge/
57
57
- name : Run the unit-tests
You can’t perform that action at this time.
0 commit comments