feat: add validate-html - Nu Html Checker as a job service instead of validator.w3.org
Test validate-html / validate-html (pull_request) Successful in 37s
Test validate-html / validate-html (pull_request) Successful in 37s
This commit is contained in:
6 files changed
+121
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# validate-html
|
||||
|
||||
Waliduje pliki HTML własną instancją Nu Html Checkera (silnik validator.w3.org) uruchamianą
|
||||
jako kontener usługowy joba — bez limitu zapytań publicznego walidatora (HTTP 429).
|
||||
Job pada na błędach (`error`, `fatal`); ostrzeżenia (`info warning`) są tylko wypisywane.
|
||||
|
||||
```yaml
|
||||
html-validate:
|
||||
runs-on: lint
|
||||
container:
|
||||
image: git.cierzniak.it/gitea-runner/node:24
|
||||
services:
|
||||
vnu:
|
||||
image: ghcr.io/validator/validator:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: https://git.cierzniak.it/gitea-runner/actions/build-site-with-hugo@v1
|
||||
with:
|
||||
version: ${{ env.HUGO_VERSION }}
|
||||
|
||||
- uses: https://git.cierzniak.it/gitea-runner/actions/validate-html@v1
|
||||
with:
|
||||
files: public/index.html public/opinia/index.html
|
||||
```
|
||||
|
||||
Usługa musi nazywać się `vnu` (albo podaj `validator-url`). Obraz ma ~350 MB; runner
|
||||
pobiera go raz i trzyma w cache'u.
|
||||
Reference in new issue
Block a user