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,37 @@
|
||||
name: Test validate-html
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- validate-html/**
|
||||
- .gitea/workflows/test-validate-html.yaml
|
||||
|
||||
jobs:
|
||||
validate-html:
|
||||
name: validate-html
|
||||
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
|
||||
|
||||
- name: Valid file passes
|
||||
uses: ./validate-html
|
||||
with:
|
||||
files: validate-html/test/valid.html
|
||||
|
||||
- name: Invalid file fails
|
||||
id: invalid
|
||||
continue-on-error: true
|
||||
uses: ./validate-html
|
||||
with:
|
||||
files: validate-html/test/invalid.html
|
||||
|
||||
- name: Expect the invalid file to fail
|
||||
if: steps.invalid.outcome != 'failure'
|
||||
run: |
|
||||
echo "::error::validate-html accepted invalid HTML"
|
||||
exit 1
|
||||
Reference in new issue
Block a user