Skip to content

Commit 6fa1cd6

Browse files
committed
Add testing / coverage
1 parent 8a69260 commit 6fa1cd6

File tree

8 files changed

+1214
-65
lines changed

8 files changed

+1214
-65
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test and Send Coverage to Coveralls
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test-and-coveralls:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run tests with coverage
25+
run: npm run test -- --coverage
26+
27+
- name: Upload coverage to Coveralls
28+
uses: coverallsapp/github-action@v2
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
path-to-lcov: ./coverage/lcov.info

jest.setup.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)