Skip to content

Commit e3d5e14

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

File tree

2 files changed

+84
-3
lines changed

2 files changed

+84
-3
lines changed

.github/workflows/check.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
docs:
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+
lintcheck:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
node-version: [22]
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install pnpm
37+
uses: pnpm/action-setup@v4
38+
- name: Use Node.js ${{ matrix.node-version }}
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
cache: 'pnpm'
43+
- name: Install dependencies
44+
run: pnpm install
45+
- name: Lintcheck
46+
run: pnpm lint:check
47+
48+
typecheck:
49+
runs-on: ubuntu-latest
50+
strategy:
51+
matrix:
52+
node-version: [22]
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
- name: Use Node.js ${{ matrix.node-version }}
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: ${{ matrix.node-version }}
61+
cache: 'pnpm'
62+
- name: Install dependencies
63+
run: pnpm install
64+
- name: Typecheck
65+
run: pnpm type:check
66+
67+
spec:
68+
runs-on: ubuntu-latest
69+
strategy:
70+
matrix:
71+
node-version: [22]
72+
steps:
73+
- uses: actions/checkout@v4
74+
- name: Install pnpm
75+
uses: pnpm/action-setup@v4
76+
- name: Use Node.js ${{ matrix.node-version }}
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: ${{ matrix.node-version }}
80+
cache: 'pnpm'
81+
- name: Install dependencies
82+
run: pnpm install
83+
- name: Spec
84+
run: pnpm spec

.github/workflows/docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Deploy docs
22

33
on:
4-
push:
5-
branches: ["master"]
6-
74
workflow_dispatch:
85

96
permissions:

0 commit comments

Comments
 (0)