-
Notifications
You must be signed in to change notification settings - Fork 73
38 lines (32 loc) · 908 Bytes
/
Copy pathtest-docs.yml
File metadata and controls
38 lines (32 loc) · 908 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
34
35
36
37
38
name: Test Deploy Docs
on:
pull_request:
branches:
- main
paths:
# config.example.toml is linked from docs/ and bundled into the build, so
# a PR that changes or removes it must run the build check
- 'docs/**'
- 'config.example.toml'
- '.github/workflows/test-docs.yml'
- '.github/workflows/docs.yml'
permissions:
contents: read
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Install dependencies
# npm ci = reproducible install from package-lock.json
run: npm ci
working-directory: ./docs
- name: Test build website
run: npm run build
working-directory: ./docs