Skip to content

Commit

Permalink
Validate HTML on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mon committed Oct 29, 2023
1 parent 7961572 commit 8ebc685
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/html5validator.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions .github/workflows/html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: HTML Check

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: HTML5 Validator
uses: Cyb3r-Jak3/[email protected]
with:
config: ./.github/html5validator.yml
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ <h1>Pick a game!</h1>
<a href="sdvx2.html" class="gameicon">
<img src="img/sdvx2.png">
<div>SDVX II INFINITE INFECTION</div>
</a>
<a href="sdvx3.html" class="gameicon">
<img src="img/sdvx.png">
<div>SDVX III GRAVITY WARS</div>
Expand Down

0 comments on commit 8ebc685

Please sign in to comment.