forked from ChainSafe/forest
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 903 Bytes
/
docs-check.yml
File metadata and controls
42 lines (39 loc) · 903 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
39
40
41
42
name: Docs Check
# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
push:
branches:
- main
paths:
- "**.md"
- "docs/**"
- ".github/workflows/docs-check.yml"
merge_group:
pull_request:
branches:
- main
paths:
- "**.md"
- "docs/**"
- ".github/workflows/docs-check.yml"
jobs:
docs-check:
name: Check
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 20
package-manager-cache: false
- run: corepack enable
- run: yarn --immutable
- run: yarn typecheck
- run: yarn format-check
- run: yarn build