Use @digitoimistodude/code-quality-checks npm package for husky hooks… #382
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |