Skip to content

Commit 40cc220

Browse files
a6b8claude
andcommitted
Add CI workflow test-on-push
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4720223 commit 40cc220

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test-on-push.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run Tests on Push
2+
3+
on: push
4+
5+
permissions:
6+
contents: read
7+
id-token: write
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Use 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 Jest tests (with coverage)
25+
run: npm run test:coverage:src
26+
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v5
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
files: ./coverage/lcov.info
32+
fail_ci_if_error: false
33+
flags: unittests

0 commit comments

Comments
 (0)