forked from WebFreak001/code-debug
-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (31 loc) · 736 Bytes
/
Copy pathunit_test.yml
File metadata and controls
36 lines (31 loc) · 736 Bytes
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
35
36
name: Unit Test Project
defaults:
run:
working-directory: code-debug
on:
push:
pull_request:
jobs:
unit_test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Module Dependencies
run: npm clean-install --omit=optional
- name: Test Project
run: npm test
- name: Generate Test Coverage
run: npm run coverage
- name: Report Test Coverage
uses: codecov/codecov-action@v3
with:
directory: ./coverage
verbose: true