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