Skip to content

Commit 04ebd2e

Browse files
committed
ci: adds ci/cd for lint/type/test check & generating the docs
1 parent 2b9255b commit 04ebd2e

2 files changed

Lines changed: 117 additions & 0 deletions

File tree

.github/workflows/check.yml

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

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy docs
2+
on:
3+
workflow_dispatch:
4+
permissions:
5+
contents: read
6+
pages: write
7+
id-token: write
8+
jobs:
9+
deploy:
10+
environment:
11+
name: github-pages
12+
url: ${{ steps.deployment.outputs.page_url }}
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [24]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'pnpm'
26+
- name: Install dependencies
27+
run: pnpm install
28+
- name: Build docs
29+
run: pnpm doc
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v5
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: './docs'
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)