Add htmltest github action

This commit is contained in:
Richard van der Hoff 2022-11-08 16:34:41 +00:00
parent 4d0c912acf
commit 3e074ed6d3
2 changed files with 28 additions and 0 deletions

View file

@ -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

6
.htmltest.yaml Normal file
View file

@ -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