Skip to content

Use @digitoimistodude/code-quality-checks npm package for husky hooks… #382

Use @digitoimistodude/code-quality-checks npm package for husky hooks…

Use @digitoimistodude/code-quality-checks npm package for husky hooks… #382

Workflow file for this run

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@v3
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"