Skip to content

Commit

Permalink
Enable link checks in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Nov 24, 2024
1 parent 13d8d0a commit f1c7d91
Showing 1 changed file with 32 additions and 5 deletions.
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

0 comments on commit f1c7d91

Please sign in to comment.