Skip to content

Commit e88590a

Browse files
authored
ci: add unit test workflow for pull requests
1 parent 9f136d1 commit e88590a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Unit Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: '24.x'
20+
21+
- uses: SocketDev/action@v1
22+
with:
23+
mode: firewall-free
24+
25+
- name: Install dev dependencies
26+
run: sfw npm install --no-package-lock
27+
28+
- name: Run unit tests
29+
run: npm run test

0 commit comments

Comments
 (0)