Skip to content

Commit 768ee6b

Browse files
authoredJun 6, 2024··
test: run test on github action (#163)
1 parent 38b36c9 commit 768ee6b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed
 

‎.github/workflows/nodejs.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
name: CI
1+
name: Continuous Integration for 4.x
22

33
on:
44
push:
5-
branches: [ master ]
6-
5+
branches: [ 4.x ]
76
pull_request:
8-
branches: [ master ]
7+
branches: [ 4.x ]
98

109
jobs:
1110
Job:
1211
name: Node.js
1312
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1413
with:
15-
version: '12, 14, 16, 18, 20'
14+
os: 'ubuntu-latest'
15+
version: '12, 14, 16, 18, 20, 22'
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

‎README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
# [**koa-bodyparser**](https://github.com/koajs/bodyparser)
22

3-
43
[![NPM version][npm-image]][npm-url]
5-
[![build status][travis-image]][travis-url]
6-
[![Coveralls][coveralls-image]][coveralls-url]
7-
[![David deps][david-image]][david-url]
4+
[![Continuous Integration for 4.x](https://github.com/koajs/bodyparser/actions/workflows/nodejs.yml/badge.svg?branch=4.x)](https://github.com/koajs/bodyparser/actions/workflows/nodejs.yml)
5+
[![Test coverage][codecov-image]][codecov-url]
86
[![node version][node-image]][node-url]
97

108
[npm-image]: https://img.shields.io/npm/v/koa-bodyparser.svg?style=flat-square
119
[npm-url]: https://npmjs.com/package/koa-bodyparser
12-
[travis-image]: https://img.shields.io/travis/koajs/bodyparser.svg?style=flat-square
13-
[travis-url]: https://travis-ci.org/koajs/bodyparser
14-
[coveralls-image]: https://img.shields.io/coveralls/koajs/bodyparser.svg?style=flat-square
15-
[coveralls-url]: https://coveralls.io/r/koajs/bodyparser?branch=master
16-
[david-image]: https://img.shields.io/david/koajs/bodyparser.svg?style=flat-square
17-
[david-url]: https://david-dm.org/koajs/bodyparser
10+
[codecov-image]: https://codecov.io/github/koajs/bodyparser/coverage.svg?branch=4.x
11+
[codecov-url]: https://codecov.io/github/koajs/bodyparser?branch=4.x
1812
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg?style=flat-square
1913
[node-url]: http://nodejs.org/download/
2014

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "xo",
1111
"lint:fix": "xo --fix",
1212
"test": "mocha --require should test/*.spec.js --exit",
13-
"coverage": "nyc npm run test --reporter=lcov",
13+
"coverage": "nyc npm run test && nyc report --reporter lcov --report-dir coverage",
1414
"ci": "npm run lint && npm run coverage"
1515
},
1616
"repository": {

0 commit comments

Comments
 (0)
Please sign in to comment.