Add htmltest github action
This commit is contained in:
parent
4d0c912acf
commit
3e074ed6d3
2 changed files with 28 additions and 0 deletions
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
|
@ -142,6 +142,28 @@ jobs:
|
||||||
name: spec-artifact
|
name: spec-artifact
|
||||||
path: spec.tar.gz
|
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:
|
build-historical-spec:
|
||||||
name: "📖 Build the historical backup spec"
|
name: "📖 Build the historical backup spec"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
6
.htmltest.yaml
Normal file
6
.htmltest.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue