Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpack spec into right place for htmltest #1338

Merged
merged 2 commits into from Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -145,7 +145,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 @@ -156,8 +156,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
@@ -0,0 +1 @@
Use a link checker to ensure that we do not have broken links.