Skip to content

Commit a973515

Browse files
committed
Add GitHub CI workflow
1 parent 519afac commit a973515

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
env:
13+
NODE_VERSION: "22.14.0"
14+
15+
jobs:
16+
lint:
17+
name: Lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
22+
with:
23+
persist-credentials: false
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
30+
- name: Enable Corepack
31+
run: corepack enable
32+
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Lint
37+
run: pnpm lint
38+
39+
test:
40+
name: Build and test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Check out repository
44+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
45+
with:
46+
persist-credentials: false
47+
48+
- name: Set up Node.js
49+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
50+
with:
51+
node-version: ${{ env.NODE_VERSION }}
52+
53+
- name: Enable Corepack
54+
run: corepack enable
55+
56+
- name: Install dependencies
57+
run: pnpm install --frozen-lockfile
58+
59+
- name: Build
60+
run: pnpm build
61+
62+
- name: Test
63+
run: pnpm test

0 commit comments

Comments
 (0)