Skip to content

Commit 0cb0cf6

Browse files
committed
ci: adds check ci
1 parent 9db1e25 commit 0cb0cf6

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/check.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
deps:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [22]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'pnpm'
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Build docs
27+
run: pnpm doc
28+
29+
docs:
30+
needs: deps
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Build docs
34+
run: pnpm doc
35+
36+
lint:
37+
needs: deps
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Lintcheck
41+
run: pnpm lint:check
42+

0 commit comments

Comments
 (0)