Skip to content

Commit 3fd15b1

Browse files
committed
[action]: ci for test coverage for push and mr;
1 parent 4c96e70 commit 3fd15b1

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test and Coverage
2+
'on':
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js 20.x
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20.x
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Run tests
21+
run: npm run test
22+
- name: Run tests with coverage
23+
run: npm run test:coverage

0 commit comments

Comments
 (0)