-
Notifications
You must be signed in to change notification settings - Fork 168
29 lines (24 loc) · 861 Bytes
/
html.yml
File metadata and controls
29 lines (24 loc) · 861 Bytes
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
name: HTML/a11y
on: push
jobs:
build:
name: Test HTML and accessibility with NU HTML Checker
runs-on: ubuntu-22.04
# Test on macOS:
# brew install openjdk
# sudo ln -sfn $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
steps:
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Download vnu.jar
run: wget https://github.com/validator/validator/releases/download/latest/vnu.jar
# Skipping this for now, see DEV-347
#- name: Run vnu validator
# run: |
# java -jar vnu.jar --skip-non-html --errors-only --format text \
# --filterpattern ".*contain-intrinsic-size.*" \
# --filterpattern ".*only.*0.*can be a.*unit.*" \
# "https://airwptheme.com/demo"