diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a895518 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - run: npm install + - run: npm run lint + - run: npm test + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - run: npm install + - run: npm run coverage + - uses: codecov/codecov-action@v3 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c33a65d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -sudo: false -node_js: - - 12 - - 14 - - 15 -notifications: - email: - on_success: change - on_failure: always -script: - - npm run lint - - npm test -after_script: - - npm install coveralls - - 'npm run coverage | coveralls' diff --git a/README.md b/README.md index 415d935..95647cd 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # SDP Transform [![npm status](http://img.shields.io/npm/v/sdp-transform.svg)](https://www.npmjs.org/package/sdp-transform) -[![build status](https://secure.travis-ci.org/clux/sdp-transform.svg)](http://travis-ci.org/clux/sdp-transform) +[![CI](https://github.com/clux/sdp-transform/actions/workflows/ci.yml/badge.svg)](https://github.com/clux/sdp-transform/actions/workflows/ci.yml) [![dependency status](https://david-dm.org/clux/sdp-transform.svg)](https://david-dm.org/clux/sdp-transform) -[![coverage status](http://img.shields.io/coveralls/clux/sdp-transform.svg)](https://coveralls.io/r/clux/sdp-transform) +[![codecov](https://codecov.io/gh/clux/sdp-transform/graph/badge.svg?token=OqDbVhIP3f)](https://codecov.io/gh/clux/sdp-transform) A simple parser and writer of SDP. Defines internal grammar based on [RFC4566 - SDP](http://tools.ietf.org/html/rfc4566), [RFC5245 - ICE](http://tools.ietf.org/html/rfc5245), and many more. diff --git a/package.json b/package.json index 6702008..ae6a134 100644 --- a/package.json +++ b/package.json @@ -19,15 +19,13 @@ "scripts": { "lint": "eslint .", "test": "bndg test/*.test.js", - "precoverage": "istanbul cover bndg test/*.test.js", - "coverage": "cat coverage/lcov.info && rm -rf coverage" + "coverage": "nyc --reporter=lcov npm run test" }, - "dependencies": {}, "devDependencies": { "bandage": "^0.5.0", "co-fs": "^1.2.0", "eslint": "^5.10.0", - "istanbul": "^0.4.5" + "nyc": "^15.1.0" }, "bugs": { "url": "https://github.com/clux/sdp-transform/issues"