From 59dee767516ee12b60231c32eea7ff0e3fb4aa08 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 16 Sep 2023 12:02:43 +0100 Subject: [PATCH 1/3] Setup github actions Signed-off-by: clux --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml 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 From aeedd19a8305dc3822c06bed21994e2570897d02 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 16 Sep 2023 12:16:33 +0100 Subject: [PATCH 2/3] s/istanbul/nyc Signed-off-by: clux --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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" From 78f15f2928d4e9de0049a87eb63f04e532036906 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 16 Sep 2023 12:18:54 +0100 Subject: [PATCH 3/3] nuke travis and update badges Signed-off-by: clux --- .travis.yml | 16 ---------------- README.md | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 .travis.yml 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.