From 3e074ed6d34bd9adb990bafaa21698218c49f825 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 8 Nov 2022 16:34:41 +0000 Subject: [PATCH] Add htmltest github action --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ .htmltest.yaml | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 .htmltest.yaml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c8301f3..ce54f976 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -142,6 +142,28 @@ jobs: name: spec-artifact path: spec.tar.gz + htmlcheck: + name: "🔎 Validate generated HTML" + runs-on: ubuntu-latest + needs: [build-spec] + steps: + - name: "📥 Source checkout" + uses: actions/checkout@v2 + + - name: "📥 Fetch built spec" + uses: actions/download-artifact@v2 + with: + name: spec-artifact + + - name: "📝 Unpack the spec" + run: | + tar -xvzf spec.tar.gz + + - name: "Run htmltest" + uses: wjdp/htmltest-action@master + with: + config: .htmltest.yaml + build-historical-spec: name: "📖 Build the historical backup spec" runs-on: ubuntu-latest diff --git a/.htmltest.yaml b/.htmltest.yaml new file mode 100644 index 00000000..1563408b --- /dev/null +++ b/.htmltest.yaml @@ -0,0 +1,6 @@ +# config file for htmltest. This is used by one of the checks in Github +# Actions. + +IgnoreDirectoryMissingTrailingSlash: true +DirectoryPath: spec +CheckExternal: false