File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 17
17
- name : Detect changes to manually verify
18
18
run : diff newcodecov .github/jobs/uploadcodecov.sh
19
19
20
- integration :
20
+ unit-tests :
21
21
runs-on : ubuntu-24.04
22
22
timeout-minutes : 20
23
23
container :
32
32
MYSQL_USER : domjudge
33
33
MYSQL_PASSWORD : domjudge
34
34
options : --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
35
+ strategy :
36
+ matrix :
37
+ PHPVERSION : [8.1]
38
+ TEST : [Unit]
35
39
steps :
36
40
- uses : actions/checkout@v4
37
41
- name : info
46
50
- name : pstree
47
51
run : pstree -p
48
52
- name : Install DOMjudge
49
- run : .github/jobs/baseinstall.sh all
53
+ run : .github/jobs/baseinstall.sh unit install test
50
54
- name : Check nginx
51
55
run : curl -v https://localhost/domjudge/
56
+ - name : Run the unit-tests
57
+ run : .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }}
58
+ - name : Publish Test Results
59
+ uses : EnricoMi/publish-unit-test-result-action@v2
60
+ if : ${{ !cancelled() }}
61
+ with :
62
+ files : /tmp/artifacts/unit-tests.xml
52
63
- name : Get SQL logs
53
64
run : docker logs "${{ job.services.sqlserver.id }}"
54
65
- name : Collect docker logs on failure
You can’t perform that action at this time.
0 commit comments