-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 875 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (27 loc) · 875 Bytes
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
name: ci
# Build every pull request exactly the way the deploy does, so a change that
# breaks an imported cross-link is caught before it reaches main.
on:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
# Without the submodules the build fails loudly, by design, rather than
# publishing empty sections — so there is no point running without them.
submodules: recursive
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
# Hugo is not installed here: `npm ci` pulls the hugo-extended version
# pinned in package.json, the same binary the container and a local
# checkout use.
- run: ./site check