Skip to content

test: run test on github action #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
Loading