refactor(tests): use `hyperlink` rather than `htmltest` for link checking
It's very fast, only checks internal links, and it's easy to use.
This commit is contained in:
parent
98c614ca0c
commit
e7e029c04f
|
@ -39,12 +39,7 @@ jobs:
|
||||||
run: pdm run build
|
run: pdm run build
|
||||||
|
|
||||||
- name: Check for broken internal links
|
- name: Check for broken internal links
|
||||||
uses: wjdp/htmltest-action@master
|
run: pdm run check-links
|
||||||
with:
|
|
||||||
path: _htdocs
|
|
||||||
config: .htmltest.yml
|
|
||||||
skip_external: true
|
|
||||||
log_level: 1
|
|
||||||
|
|
||||||
- name: Deploy lektor website
|
- name: Deploy lektor website
|
||||||
if: env.DEPLOY == 'true'
|
if: env.DEPLOY == 'true'
|
||||||
|
|
|
@ -35,3 +35,5 @@ _.env = {LEKTOR_OUTPUT_PATH = "_htdocs"}
|
||||||
build = "lektor build -f webpack"
|
build = "lektor build -f webpack"
|
||||||
server = "lektor server -f webpack"
|
server = "lektor server -f webpack"
|
||||||
deploy = "lektor deploy ghpages-https"
|
deploy = "lektor deploy ghpages-https"
|
||||||
|
|
||||||
|
check-links = "npx --yes @untitaker/hyperlink@~0.1.32 --check-anchors _htdocs"
|
||||||
|
|
Loading…
Reference in New Issue