Update unitTests.yml

This commit is contained in:
Mohammed Huzaif 2021-10-12 11:16:54 +05:30 committed by GitHub
parent 494b4c9097
commit d590bf372f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,3 +24,23 @@ jobs:
- run: npm install request
- run: npm install
- run: npm test
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v2
with:
go-version: '1.17'
- name: Checkout code
uses: actions/checkout@v2
- name: Run unit tests with coverage
run: npm test -v -race -coverprofile=coverage.txt
- name: Codecov
uses: codecov/codecov-action@v2
with:
file: coverage.txt
flags: unittests
verbose: true
fail_ci_if_error: false