Skip to content

Commit

Permalink
Add htmltest github action
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Nov 8, 2022
1 parent fd41d9d commit 844c351
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.yml

build-historical-spec:
name: "πŸ“– Build the historical backup spec"
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .htmltest.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 844c351

Please sign in to comment.