-
Notifications
You must be signed in to change notification settings - Fork 168
63 lines (52 loc) · 1.43 KB
/
ci-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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: make check-links
- name: Relaxed link check for newer versions
run: make check-links-older
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