validate_static: check Web Manifest JSON

This commit is contained in:
Daniel Micay 2020-05-06 15:14:27 -04:00
parent 9d68744f20
commit 7c1d53613f
2 changed files with 6 additions and 5 deletions

View File

@ -8,20 +8,20 @@ on:
jobs:
validate-static:
runs-on: ubuntu-latest
env:
VALIDATOR_VERSION: 20.3.16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache validator
@ -31,7 +31,7 @@ jobs:
path: vnu-runtime-image
key: ${{ runner.os }}-validator-${{ env.VALIDATOR_VERSION }}
- run: sudo apt-get -y install libxml2-utils
- run: sudo apt-get -y install libxml2-utils yajl-tools
- run: npm install
- name: Download validatornu

View File

@ -5,6 +5,7 @@ shopt -s extglob globstar
export PATH="$PWD/node_modules/.bin:$PATH"
json_verify < static/manifest.webmanifest
xmllint --noout static/**/*.@(html|svg|xml)
jshint --verbose static/**/*.js
stylelint static/**/*.css