Skip to content

Commit

Permalink
Unpack spec into right place for htmltest (#1338)
Browse files Browse the repository at this point in the history
Hopefully, fixes #1336
  • Loading branch information
richvdh authored Nov 15, 2022
1 parent 08fde5f commit 3c9139b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
htmlcheck:
name: "🔎 Validate generated HTML"
runs-on: ubuntu-latest
needs: [build-spec]
needs: [calculate-baseurl, build-spec]
steps:
- name: "📥 Source checkout"
uses: actions/checkout@v2
Expand All @@ -183,8 +183,14 @@ jobs:
name: spec-artifact

- name: "📝 Unpack the spec"
# we have to unpack it into the right path given the baseurl, so that the
# links are correct.
# eg if baseurl is `/unstable`, we want to put the site in `spec/unstable`.
run: |
tar -xvzf spec.tar.gz
mkdir -p "spec${baseURL}"
tar -C "spec${baseURL}" --strip-components=1 -xvzf spec.tar.gz
env:
baseURL: "${{ needs.calculate-baseurl.outputs.baseURL }}"

- name: "Run htmltest"
uses: wjdp/htmltest-action@master
Expand Down
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1338.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use a link checker to ensure that we do not have broken links.

0 comments on commit 3c9139b

Please sign in to comment.