mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-01 06:34:09 +02:00
Unpack spec into right place for htmltest
Hopefully, fixes https://github.com/matrix-org/matrix-spec/issues/1336
This commit is contained in:
parent
498cf6d147
commit
5600954393
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
|
@ -145,7 +145,7 @@ jobs:
|
||||||
htmlcheck:
|
htmlcheck:
|
||||||
name: "🔎 Validate generated HTML"
|
name: "🔎 Validate generated HTML"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-spec]
|
needs: [calculate-baseurl, build-spec]
|
||||||
steps:
|
steps:
|
||||||
- name: "📥 Source checkout"
|
- name: "📥 Source checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -156,8 +156,14 @@ jobs:
|
||||||
name: spec-artifact
|
name: spec-artifact
|
||||||
|
|
||||||
- name: "📝 Unpack the spec"
|
- 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: |
|
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"
|
- name: "Run htmltest"
|
||||||
uses: wjdp/htmltest-action@master
|
uses: wjdp/htmltest-action@master
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue