Unpack spec into right place for htmltest (#1338)

Hopefully, fixes https://github.com/matrix-org/matrix-spec/issues/1336
release/v1.5
Richard van der Hoff 2 years ago committed by GitHub
parent 08fde5f257
commit 3c9139bd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1 @@
Use a link checker to ensure that we do not have broken links.
Loading…
Cancel
Save