From c10d4d71c5df1d50e3a822eb1e9605999872ac60 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Tue, 20 Jul 2021 09:32:55 -0400 Subject: [PATCH] Use tidy to validate HTML --- .github/workflows/test.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44555e4..37564d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,13 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - name: Install dependencies + - name: Install tidy 5.8.0 run: | - sudo apt-get update -qq - sudo apt-get install -yy default-jre-headless - pip install html5validator + curl -sSL -o /tmp/tidy.zip https://github.com/remram44/regex-cheatsheet/files/6848619/tidy-5.8.0.zip + unzip -p /tmp/tidy.zip tidy-5.8.0 >/usr/local/bin/tidy + chmod +x /usr/local/bin/tidy - name: Validate HTML - run: html5validator --show-warnings + run: tidy -errors -quiet --drop-empty-elements no regex.html