File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
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, 8.4]
38
+ TEST : [Unit, E2E]
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
+ comment_mode : changes in failures
63
+ check_name : unit-tests-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}.xml
64
+ files : unit-tests-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}.xml
52
65
- name : Get SQL logs
53
66
run : docker logs "${{ job.services.sqlserver.id }}"
54
67
- name : Collect docker logs on failure
60
73
if : ${{ !cancelled() }}
61
74
uses : actions/upload-artifact@v4
62
75
with :
63
- name : Logs
76
+ name : Logs-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}
64
77
path : |
65
78
/var/log/nginx
66
79
/opt/domjudge/domserver/webapp/var/log/*.log
67
80
/tmp/docker-logs
68
81
/tmp/artifacts
69
- - name : Verify no errors in symfony {prod,test,dev}.log
70
- shell : bash
71
- run : |
72
- if cat /opt/domjudge/domserver/webapp/var/log/*.log | egrep '(CRITICAL|ERROR):'; then
73
- exit 1
74
- fi
You can’t perform that action at this time.
0 commit comments