1 parent e32b499 commit 3cf9920Copy full SHA for 3cf9920
1 file changed
.github/workflows/test.yml
@@ -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
12
13
14
15
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
39
+ token: ${{ secrets.CODECOV_TOKEN }}
0 commit comments