Validate HTML on PRs

This commit is contained in:
Will Toohey
2023-10-29 10:05:02 +10:00
committed by Will
parent 7961572845
commit 9000401bf5
3 changed files with 22 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
root: ./
ignore_re:
- 'An "img" element must have an "alt" attribute, except under certain conditions'
- 'Element "div" not allowed as child of element "label" in this context'
- 'The "center" element is obsolete. Use CSS instead' # initialdzero
+16
View File
@@ -0,0 +1,16 @@
name: HTML Check
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@v7.2.0
with:
config: ./.github/html5validator.yml
css: true