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

Enable link checks in CI #789

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main]

jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,13 +26,40 @@ jobs:
sudo mv hugo /usr/local/bin
hugo version

- name: Spellcheck
run: |
make spellcheck

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