-
Notifications
You must be signed in to change notification settings - Fork 260
65 lines (64 loc) · 1.83 KB
/
webstandard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Webstandard (WCAG, W3C)
on:
merge_group:
pull_request:
branches:
- main
- '[0-9]+.[0-9]+'
jobs:
standards:
runs-on: ubuntu-latest
container:
image: domjudge/gitlabci:24.04
services:
sqlserver:
image: mariadb
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: domjudge
MYSQL_PASSWORD: domjudge
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
role: [public, team, balloon, jury, admin]
test: [w3cval, WCAG2A, WCAG2AA]
db: [bare-install, install]
releaseBranch:
- ${{ contains(github.ref, 'gh-readonly-queue') }}
exclude:
- releaseBranch: false
- role: jury
test: WCAG2AA
- role: jury
test: WCAG2A
- role: admin
test: WCAG2AA
- role: admin
test: WCAG2A
include:
- role: public
test: WCAG2AA
db: install
- role: public
test: w3cval
db: install
- role: admin
test: w3cval
db: install
steps:
- uses: actions/checkout@v4
- name: Install DOMjudge
run: .github/jobs/baseinstall.sh ${{ matrix.role }}
- name: Run webstandard tests (W3C, WCAG)
run: .github/jobs/webstandard.sh ${{ matrix.test }} ${{ matrix.role }}
- name: Upload all logs/artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.role }}-${{ matrix.test }}-${{ matrix.db }}-logs
path: |
/tmp/artifacts
/var/log/nginx
/opt/domjudge/domserver/webapp/var/log/*.log