-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.06 KB
/
pull-request-doc.yml
File metadata and controls
47 lines (38 loc) · 1.06 KB
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
name: Pull Request Docs
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, ready_for_review]
paths:
- doc/**
- .github/actions/setup-node-pnpm/action.yml
- .github/workflows/deploy-doc.yml
- .github/workflows/pull-request-doc.yml
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- turbo.json
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
check-doc:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-node-pnpm
with:
install-filter: "@truenine/memory-sync-docs..."
- name: Validate docs content
run: pnpm -C doc run validate:content
- name: Lint docs
run: pnpm -C doc run lint
- name: Typecheck docs
run: pnpm -C doc run typecheck
- name: Build docs
run: pnpm -C doc run build