-
Notifications
You must be signed in to change notification settings - Fork 193
46 lines (38 loc) · 978 Bytes
/
docs.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
name: Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- ".github/workflows/docs.yml"
workflow_dispatch:
jobs:
linkcheck:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup prerequisites
uses: ./.github/actions/setup-prerequisites
- name: Install node dependencies
working-directory: docs
run: pnpm install --frozen-lockfile
- name: Build
working-directory: docs
run: pnpm build
- name: Start
working-directory: docs
run: pnpm start & npx wait-on --timeout 5000 http://127.0.0.1:3000
# TODO: wait for server to be online?
- name: Check links
uses: filiph/[email protected]
with:
arguments: http://127.0.0.1:3000