Skip to content

Commit 83d0f21

Browse files
committed
chore: Add Test Coverage to CI
1 parent 729e62b commit 83d0f21

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/tests.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches: ["**"]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 18
16+
cache: npm
17+
- name: Install Dependencies
18+
run: npm ci
19+
- name: Run Tests and Report Coverage
20+
run: npm run test:coverage
21+
- name: Upload Code Coverage Report
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: code-coverage-report
25+
path: coverage

0 commit comments

Comments
 (0)