Skip to content

Commit df58d75

Browse files
import the pr time check
1 parent a7028af commit df58d75

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build-check.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Restore build cache
31+
uses: actions/cache@v4
32+
with:
33+
path: site/.vitepress/.build-cache
34+
key: vitepress-build-${{ hashFiles('documents/**') }}
35+
restore-keys: vitepress-build-
36+
37+
- name: Build
38+
run: pnpm build
39+
env:
40+
NODE_OPTIONS: --max-old-space-size=6144
41+
BUILD_CONCURRENCY: 8

0 commit comments

Comments
 (0)