Skip to content

Commit 50b613f

Browse files
committed
ci: init
1 parent dd1abcc commit 50b613f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Change to your default branch if different
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: '18' # Specify the Node.js version
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Run tests
29+
run: npm test --if-present
30+
31+
- name: Build the project
32+
run: npm run build --if-present
33+

0 commit comments

Comments
 (0)