Move linkinator to GitHub Actions. (#35573)

* Move linkinator to GitHub Actions.

* Remove `docs-linkinator` npm script since it's no longer used
This commit is contained in:
XhmikosR 2022-01-29 14:42:56 +02:00
parent 3b63d509de
commit bae047fcee
3 changed files with 15 additions and 900 deletions

View File

@ -30,5 +30,16 @@ jobs:
- name: Install npm dependencies
run: npm ci
- name: Test docs
run: npm run docs
- name: Build docs
run: npm run docs-build
- name: Validate HTML
run: npm run docs-vnu
- name: Run linkinator
uses: JustinBeckwith/linkinator-action@v1
with:
paths: _site
recurse: true
verbosity: error
skip: "^(?!http://localhost)"

894
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -52,13 +52,12 @@
"docs": "npm-run-all docs-build docs-lint",
"docs-build": "hugo --cleanDestinationDir",
"docs-compile": "npm run docs-build",
"docs-linkinator": "linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error",
"docs-vnu": "node build/vnu-jar.js",
"docs-lint": "npm-run-all --aggregate-output --parallel docs-vnu docs-linkinator",
"docs-lint": "npm run docs-vnu",
"docs-serve": "hugo server --port 9001 --disableFastRender",
"docs-serve-only": "npx sirv-cli _site --port 9001",
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
"update-deps": "ncu -u -x \"globby,jquery,karma-browserstack-launcher,sinon\" && echo Manually update site/assets/js/vendor",
"update-deps": "ncu -u -x globby,jquery,karma-browserstack-launcher,sinon && echo Manually update site/assets/js/vendor",
"release": "npm-run-all dist release-sri docs-build release-zip*",
"release-sri": "node build/generate-sri.js",
"release-version": "node build/change-version.js",
@ -124,7 +123,6 @@
"karma-firefox-launcher": "^2.1.2",
"karma-qunit": "^4.1.2",
"karma-sinon": "^1.0.5",
"linkinator": "^3.0.3",
"lockfile-lint": "^4.6.2",
"node-sass": "^7.0.1",
"nodemon": "^2.0.15",