Skip to content

Commit

Permalink
test: run test on github action (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jun 5, 2024
1 parent bc50a97 commit 9cce60c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 40 deletions.
18 changes: 0 additions & 18 deletions .autod.conf.js

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '8, 10, 12, 14, 16, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

File renamed without changes.
17 changes: 6 additions & 11 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
# co-body

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![David deps][david-image]][david-url]
[![CI](https://github.com/cojs/co-body/actions/workflows/node.yml/badge.svg)](https://github.com/cojs/co-body/actions/workflows/node.yml)
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/co-body.svg?style=flat-square
[npm-url]: https://npmjs.org/package/co-body
[travis-image]: https://img.shields.io/travis/cojs/co-body.svg?style=flat-square
[travis-url]: https://travis-ci.org/cojs/co-body
[coveralls-image]: https://img.shields.io/coveralls/cojs/co-body.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/cojs/co-body?branch=master
[david-image]: https://img.shields.io/david/cojs/co-body.svg?style=flat-square
[david-url]: https://david-dm.org/cojs/co-body
[codecov-image]: https://codecov.io/github/cojs/co-body/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/cojs/co-body?branch=master
[download-image]: https://img.shields.io/npm/dm/co-body.svg?style=flat-square
[download-url]: https://npmjs.org/package/co-body

Parse request bodies with generators inspired by [Raynos/body](https://github.com/Raynos/body).
> Parse request bodies with generators inspired by [Raynos/body](https://github.com/Raynos/body).
## Installation

Expand Down Expand Up @@ -80,4 +75,4 @@ var body = await parse(this);

# License

MIT
[MIT](LICENSE.txt)
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"type-is": "^1.6.16"
},
"devDependencies": {
"autod": "^3.0.1",
"egg-bin": "^4.7.0",
"eslint": "^4.19.1",
"eslint-config-egg": "^7.0.0",
Expand All @@ -31,12 +30,15 @@
"license": "MIT",
"scripts": {
"lint": "eslint .",
"autod": "autod",
"test": "egg-bin test -r should",
"cov": "eslint . && egg-bin cov -r should"
"cov": "eslint . && egg-bin cov -r should",
"ci": "npm run lint && npm run cov"
},
"files": [
"index.js",
"lib/"
]
],
"engines": {
"node": ">=8.0.0"
}
}

0 comments on commit 9cce60c

Please sign in to comment.