38 lines
874 B
YAML
38 lines
874 B
YAML
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
|