-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (30 loc) · 891 Bytes
/
test:unit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: test:unit
on:
pull_request:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/test:unit.yml'
workflow_dispatch:
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: npm
cache-dependency-path: package-lock.json
- name: Build App
run: |
npm ci
npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json