summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/validate-static.yml10
-rwxr-xr-xvalidate_static1
2 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/validate-static.yml b/.github/workflows/validate-static.yml
index f6083e7d..3023797e 100644
--- a/.github/workflows/validate-static.yml
+++ b/.github/workflows/validate-static.yml
@@ -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
diff --git a/validate_static b/validate_static
index bde6796d..c3d32744 100755
--- a/validate_static
+++ b/validate_static
@@ -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