-
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (24 loc) · 857 Bytes
/
html.yml
File metadata and controls
29 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Uses: https://github.com/marketplace/actions/html5-validator
# Validates HTML5 and CSS (can turn off CSS if you want)
name: HTML5 Validator
on: [pull_request, push]
jobs:
validate:
name: Validate HTML
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Run HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@v0.4.1
with:
root: . # check all files
css: true # also check CSS
# html5validator options
# ignore certain exercises in Ch. 2
extra: --ignore ./chapter2/practice/style.html ./chapter2/practice/Funky-OneLiner.html ./chapter2/solutions/Funky-OneLiner.html
- name: Retrieve log file
uses: actions/upload-artifact@v2
with:
name: log
path: log.log