Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit 25fd13f

Browse files
author
Michael Perrotte
committedMar 2, 2020
ci: update scripts and ci.yml to handle coverage better
1 parent a3d9380 commit 25fd13f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# coverage will need to be adjusted.
1717
#
1818
################################################################################
19-
name: Node CI
19+
name: node-ci
2020

2121
on: [push, pull_request]
2222

@@ -60,7 +60,8 @@ jobs:
6060
# Simply run the tests for the project.
6161
################################################################################
6262
- name: Run tests
63-
run: npm test
63+
if: github.event_name != 'push' || matrix.node-version != '12.x' || matrix.os != 'ubuntu-latest'
64+
run: npm test -- --no-coverage
6465

6566
################################################################################
6667
# Run coverage check
@@ -76,7 +77,7 @@ jobs:
7677
################################################################################
7778
- name: Run coverage report
7879
if: github.event_name == 'push' && matrix.node-version == '12.x' && matrix.os == 'ubuntu-latest'
79-
run: npm run coverage
80+
run: npm test
8081
env:
8182
# The environment variable name is leveraged by `tap`
8283
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

‎package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"postversion": "npm publish",
1010
"postpublish": "git push origin --follow-tags",
1111
"lint": "standard",
12-
"test": "tap --no-coverage",
13-
"coverage": "tap"
12+
"test": "tap"
1413
},
1514
"devDependencies": {
1615
"nock": "^12.0.1",

0 commit comments

Comments
 (0)
This repository has been archived.