Skip to content

Commit f9090c9

Browse files
authored
build: add ci workflow (#42)
Resolves #25
1 parent bd30be4 commit f9090c9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
install-lint-build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 18
24+
25+
- name: Install pnpm
26+
run: npm install -g pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Lint the code
32+
run: pnpm lint
33+
34+
- name: Run Prettier check
35+
run: pnpm format:check
36+
37+
- name: Build the project
38+
run: pnpm build

0 commit comments

Comments
 (0)