Skip to content

Commit 2d5ff05

Browse files
committed
ci: remove Travis and add Coveralls
1 parent 6961874 commit 2d5ff05

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.github/workflows/commit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ jobs:
4040

4141
- name: Test and cover
4242
run: npm run cover
43+
44+
- name: Report NYC coverage to Coveralls
45+
uses: coverallsapp/github-action@v2
46+
47+
- name: Report NYC coverage to pull request
48+
uses: sidx1024/report-nyc-coverage-github-action@v1.2.7
49+
with:
50+
coverage_file: "coverage/coverage-summary.json"

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# netatmo-nodejs-api
22

33
[![license: AGPLv3](https://img.shields.io/badge/license-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
4-
[![Build Status](https://travis-ci.com/nioc/netatmo-nodejs-api.svg?branch=master)](https://travis-ci.com/nioc/netatmo-nodejs-api)
4+
[![Build Status](https://img.shields.io/github/actions/workflow/status/nioc/xmpp-web/commit.yml?label=github%20build)](https://github.com/nioc/xmpp-web/actions/workflows/commit.yml)
55
[![Coverage Status](https://coveralls.io/repos/github/nioc/netatmo-nodejs-api/badge.svg?branch=master)](https://coveralls.io/github/nioc/netatmo-nodejs-api?branch=master)
66
[![GitHub release](https://img.shields.io/github/release/nioc/netatmo-nodejs-api.svg)](https://github.com/nioc/netatmo-nodejs-api/releases/latest)
77
[![npms.io (final)](https://img.shields.io/npms-io/final-score/netatmo-nodejs-api)](https://www.npmjs.com/package/netatmo-nodejs-api)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc -p .",
99
"lint": "eslint ./src/**.ts",
1010
"test": "mocha test/index.test.js",
11-
"cover": "nyc --reporter=html mocha test/index.test.js",
11+
"cover-html": "nyc --reporter=html mocha test/index.test.js",
12+
"cover": "nyc --reporter=json-summary --exclude-after-remap false mocha test/index.test.js",
1213
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
1314
},
1415
"engines": {

0 commit comments

Comments
 (0)