Skip to content

Commit b19d315

Browse files
committed
feat: added github workflow to build and test
1 parent e6e4e05 commit b19d315

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '20.x'
19+
20+
- name: Install pnpm
21+
run: |
22+
npm install -g pnpm
23+
24+
- name: Install dependencies
25+
run: |
26+
pnpm install
27+
28+
- name: Build project
29+
run: |
30+
pnpm run build

0 commit comments

Comments
 (0)