-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (79 loc) · 2.77 KB
/
w3.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Web standards
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
wcag:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
repository: StudieverenigingSTORM/BAPC21-site
ref: main
- name: Checkout the newish theme
run: cd themes; rm -rf ./*; mkdir BAPC21-theme
- uses: actions/checkout@v2
with:
path: themes/BAPC21-theme
- name: Install gohugo
run: sudo apt install hugo
- name: Generate the new look
run: hugo -D
- name: Install pa11y
run: npm install pa11y
- name: Check WCAG
run: find ./public/ -name *.html -exec node_modules/.bin/pa11y -s WCAG2AAA -E "#header" {} \;
vnu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
repository: StudieverenigingSTORM/BAPC21-site
ref: main
- name: Checkout the newish theme
run: cd themes; rm -rf ./*; mkdir BAPC21-theme
- uses: actions/checkout@v2
with:
path: themes/BAPC21-theme
- name: Install gohugo
run: sudo apt install hugo
- name: Generate the new look
run: hugo -D
- name: Install VNU
run: npm install vnu-jar
- name: Check W3/HTML
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-html --format json public 2>&1 | python3 -m json.tool
- name: Check W3/CSS
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-css --format json public 2>&1| python3 -m json.tool
- name: Check W3/SVG
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-svg --format json public 2>&1| python3 -m json.tool
- name: Fail W3/HTML
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-html public
- name: Fail W3/CSS
run: find /home/runner/work -name cutive.css -exec sed -i '/unicode-range/d' {} \;; java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-css public
- name: Fail W3/SVG
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-svg public
webhint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
repository: StudieverenigingSTORM/BAPC21-site
ref: main
- name: Checkout the newish theme
run: cd themes; rm -rf ./*; mkdir BAPC21-theme
- uses: actions/checkout@v2
with:
path: themes/BAPC21-theme
- name: Install gohugo
run: sudo apt install hugo
- name: Generate the new look
run: hugo -D
- name: Install Webhint
run: npm install hint
- name: Test install
run: find node_modules -name hint
#- name: Check Hints
# run: node_modules/.bin/hint public; true