Skip to content

Commit fe03cfb

Browse files
committed
Move off grunt/travis to use GH Actions/nyc
1 parent 8f4e890 commit fe03cfb

File tree

5 files changed

+16
-83
lines changed

5 files changed

+16
-83
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [12.x, 14.x, 16.x]
18-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17+
node-version: [14.x]
1918

2019
steps:
2120
- uses: actions/checkout@v2
2221
- name: Use Node.js ${{ matrix.node-version }}
2322
uses: actions/setup-node@v2
2423
with:
2524
node-version: ${{ matrix.node-version }}
26-
- run: npm ci
27-
- run: npm test
25+
- run: |
26+
npm install
27+
npm test
28+
npm coverage
29+
- name: Publish to coveralls.io
30+
uses: coverallsapp/[email protected]
31+
with:
32+
github-token: ${{ github.token }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.nyc_output
2+
13
# Logs
24
logs
35
*.log

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

Gruntfile.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
}
2525
],
2626
"scripts": {
27-
"test": "./node_modules/.bin/mocha "
27+
"test": "nyc mocha",
28+
"coverage": "nyc report --reporter=lcov"
2829
},
2930
"dependencies": {
3031
"axios": "0.21.1",
@@ -34,13 +35,11 @@
3435
"read": "^1.0.7"
3536
},
3637
"devDependencies": {
37-
"grunt": "^1.3.0",
38-
"grunt-cli": "^1.3.2",
39-
"grunt-contrib-jshint": "^3.0.0",
40-
"grunt-simple-mocha": "^0.4.1",
38+
"coveralls": "^3.1.0",
4139
"mocha": "9.0.0",
40+
"nyc": "^15.1.0",
4241
"should": "13.2.3",
43-
"sinon": "11.1.1",
42+
"sinon": "^10.0.0",
4443
"sinon-test": "^3.1.0"
4544
},
4645
"optionalDependencies": {

0 commit comments

Comments
 (0)