Skip to content

Commit 3cf9920

Browse files
committed
test
1 parent e32b499 commit 3cf9920

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Tools (Unit)
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
paths:
7+
- '.github/workflows/test*.yml'
8+
- 'package*.json'
9+
- 'tools/**'
10+
pull_request:
11+
branches: ['**']
12+
paths:
13+
- '.github/workflows/test*.yml'
14+
- 'package*.json'
15+
- 'tools/**'
16+
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
29+
- name: Install Dependencies
30+
run: npm ci
31+
32+
- name: Tests
33+
run: |
34+
npm run test -- --coverage
35+
36+
- name: Upload coverage to Codecov
37+
uses: codecov/codecov-action@v4.0.1
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)