Skip to content

Commit a295958

Browse files
authored
Merge pull request #24 from remram44/ci-tidy
Use tidy to validate HTML
2 parents dd5711c + c10d4d7 commit a295958

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v1
13-
with:
14-
python-version: "3.7"
15-
- name: Install dependencies
12+
- name: Install tidy 5.8.0
1613
run: |
17-
sudo apt-get update -qq
18-
sudo apt-get install -yy default-jre-headless
19-
pip install html5validator
14+
curl -sSL -o /tmp/tidy.zip https://github.com/remram44/regex-cheatsheet/files/6848619/tidy-5.8.0.zip
15+
unzip -p /tmp/tidy.zip tidy-5.8.0 >/usr/local/bin/tidy
16+
chmod +x /usr/local/bin/tidy
2017
- name: Validate HTML
21-
run: html5validator --show-warnings
18+
run: tidy -errors -quiet --drop-empty-elements no regex.html

0 commit comments

Comments
 (0)