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 16
16
- name : Detect changes to manually verify
17
17
run : diff newcodecov .github/jobs/uploadcodecov.sh
18
18
19
- integration :
19
+ unit-tests :
20
20
runs-on : ubuntu-24.04
21
21
timeout-minutes : 20
22
22
container :
31
31
MYSQL_USER : domjudge
32
32
MYSQL_PASSWORD : domjudge
33
33
options : --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
34
+ strategy :
35
+ matrix :
36
+ PHPVERSION : [8.1, 8.4]
37
+ TEST : [Unit, E2E]
34
38
steps :
35
39
- uses : actions/checkout@v4
36
40
- name : info
45
49
- name : pstree
46
50
run : pstree -p
47
51
- name : Install DOMjudge
48
- run : .github/jobs/baseinstall.sh all
52
+ run : .github/jobs/baseinstall.sh unit install test
49
53
- name : Check nginx
50
54
run : curl -v https://localhost/domjudge/
55
+ - name : Run the unit-tests
56
+ run : .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }}
57
+ - name : Publish Test Results
58
+ uses : EnricoMi/publish-unit-test-result-action@v2
59
+ if : ${{ !cancelled() }}
60
+ with :
61
+ comment_mode : changes in failures
62
+ check_name : unit-tests-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}.xml
63
+ files : unit-tests-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}.xml
51
64
- name : Get SQL logs
52
65
run : docker logs "${{ job.services.sqlserver.id }}"
53
66
- name : Collect docker logs on failure
59
72
if : ${{ !cancelled() }}
60
73
uses : actions/upload-artifact@v4
61
74
with :
62
- name : Logs
75
+ name : Logs-${{ matrix.PHPVERSION }}-${{ matrix.TEST }}
63
76
path : |
64
77
/var/log/nginx
65
78
/opt/domjudge/domserver/webapp/var/log/*.log
66
79
/tmp/docker-logs
67
80
/tmp/artifacts
68
- - name : Verify no errors in symfony {prod,test,dev}.log
69
- shell : bash
70
- run : |
71
- if cat /opt/domjudge/domserver/webapp/var/log/*.log | egrep '(CRITICAL|ERROR):'; then
72
- exit 1
73
- fi
You can’t perform that action at this time.
0 commit comments