diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2020-05-06 15:14:27 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2020-05-06 15:24:03 -0400 |
| commit | 7c1d53613f27918c5a8a37885bc89d37d34dd838 (patch) | |
| tree | 35c9b0ea475408f2df13fea7cb8935a2844fe16a | |
| parent | 9d68744f202b142ff74db523bc116e58cffd4691 (diff) | |
validate_static: check Web Manifest JSON
| -rw-r--r-- | .github/workflows/validate-static.yml | 10 | ||||
| -rwxr-xr-x | validate_static | 1 |
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 |
