From 9000401bf581f35e683a8271fed5689f11af9cf9 Mon Sep 17 00:00:00 2001 From: Will Toohey Date: Sun, 29 Oct 2023 10:05:02 +1000 Subject: [PATCH] Validate HTML on PRs --- .github/html5validator.yml | 5 +++++ .github/workflows/html.yml | 16 ++++++++++++++++ index.html | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/html5validator.yml create mode 100644 .github/workflows/html.yml diff --git a/.github/html5validator.yml b/.github/html5validator.yml new file mode 100644 index 0000000..635b195 --- /dev/null +++ b/.github/html5validator.yml @@ -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 diff --git a/.github/workflows/html.yml b/.github/workflows/html.yml new file mode 100644 index 0000000..e17df3b --- /dev/null +++ b/.github/workflows/html.yml @@ -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 diff --git a/index.html b/index.html index 6b33597..1972e27 100644 --- a/index.html +++ b/index.html @@ -230,7 +230,6 @@

Pick a game!

GuitarFreaks & DrumMania XG2
-
GuitarFreaks & DrumMania XG3
@@ -441,6 +440,7 @@

Pick a game!

SDVX II INFINITE INFECTION
+
SDVX III GRAVITY WARS