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

This commit is contained in:
cierzniak committed 2026-11-06 14:42:25 +01:00
1 parent e6ca43c712
commit 3cb2a7bdad
6 files changed
+121

No files matched your search

+37
View File
@@ -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