Enable link checks in CI #432
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: ✨ Setup Hugo | |
env: | |
# should match one from netlify.toml | |
HUGO_VERSION: 0.123.6 | |
run: | | |
mkdir ~/hugo | |
cd ~/hugo | |
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz | |
tar -xvzf hugo.tar.gz | |
sudo mv hugo /usr/local/bin | |
hugo version | |
- name: Build | |
run: | | |
make build | |
- name: Setup Go to install htmltest | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: 1.23.x | |
- name: Install htmltest | |
run: | | |
go install github.com/wjdp/htmltest@latest | |
- name: Strict link check for newer versions | |
run: | | |
htmltest -c .htmltest.yml | |
- name: Relaxed link check for newer versions | |
run: | | |
htmltest -c .htmltest.old-versions.yml | |
spellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Spellcheck | |
run: | | |
make spellcheck | |
block-pr-from-main-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Ensure PR is not on main branch | |
uses: jaegertracing/jaeger/.github/actions/block-pr-from-main-branch@main |