Skip to content

Commit 52455b7

Browse files
committed
migrate CI pipeline to GitHub actions
1 parent 34ef1ba commit 52455b7

File tree

3 files changed

+16
-127
lines changed

3 files changed

+16
-127
lines changed

.travis.yml

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

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[![NPM Version][npm-version-image]][npm-url]
44
[![NPM Downloads][npm-downloads-image]][npm-url]
5-
[![Node.js Version][node-version-image]][node-version-url]
6-
[![Build Status][travis-image]][travis-url]
7-
[![Test Coverage][coveralls-image]][coveralls-url]
5+
[![Node.js Version][node-image]][node-url]
6+
[![Build Status][ci-image]][ci-url]
7+
[![Coverage Status][coveralls-image]][coveralls-url]
88

99
Execute a listener when a response is about to write headers.
1010

@@ -70,12 +70,12 @@ $ npm test
7070

7171
[MIT](LICENSE)
7272

73-
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/on-headers/master
74-
[coveralls-url]: https://coveralls.io/r/jshttp/on-headers?branch=master
75-
[node-version-image]: https://badgen.net/npm/node/on-headers
76-
[node-version-url]: https://nodejs.org/en/download
77-
[npm-downloads-image]: https://badgen.net/npm/dm/on-headers
78-
[npm-url]: https://npmjs.org/package/on-headers
79-
[npm-version-image]: https://badgen.net/npm/v/on-headers
80-
[travis-image]: https://badgen.net/travis/jshttp/on-headers/master
81-
[travis-url]: https://travis-ci.org/jshttp/on-headers
73+
[ci-image]: https://badgen.net/github/checks/jshttp/methods/master?label=ci
74+
[ci-url]: https://github.com/jshttp/methods/actions/workflows/ci.yml
75+
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/methods/master
76+
[coveralls-url]: https://coveralls.io/r/jshttp/methods?branch=master
77+
[node-image]: https://badgen.net/npm/node/methods
78+
[node-url]: https://nodejs.org/en/download
79+
[npm-downloads-image]: https://badgen.net/npm/dm/methods
80+
[npm-url]: https://npmjs.org/package/methods
81+
[npm-version-image]: https://badgen.net/npm/v/methods

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"eslint-plugin-node": "11.1.0",
2020
"eslint-plugin-promise": "4.2.1",
2121
"eslint-plugin-standard": "4.0.1",
22-
"istanbul": "0.4.5",
23-
"mocha": "8.0.1",
22+
"mocha": "10.2.0",
23+
"nyc": "15.1.0",
2424
"supertest": "4.0.2"
2525
},
2626
"files": [
@@ -35,8 +35,8 @@
3535
"scripts": {
3636
"lint": "eslint --plugin markdown --ext js,md .",
3737
"test": "mocha --reporter spec --bail --check-leaks test/",
38-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
39-
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
38+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
39+
"test-cov": "nyc --reporter=html --reporter=text npm test",
4040
"version": "node scripts/version-history.js && git add HISTORY.md"
4141
}
4242
}

0 commit comments

Comments
 (0)