diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fafd393 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [6, 8, 10] + name: Node ${{ matrix.node }} + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Use node ${{ matrix.node }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + + - name: Install + run: npm install + + - name: Test + run: npm test + + - name: Coverage + run: npm run coverage + + - name: Codecov + uses: codecov/codecov-action@v1 + with: + file: coverage/lcov.info diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bfe1509..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js - -node_js: - - 6 - - 8 - - 10 - -after_success: npm run coverage - -notifications: - email: false diff --git a/README.md b/README.md index bf625b9..1c58ac7 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ [![level badge][level-badge]](https://github.com/Level/awesome) [![npm](https://img.shields.io/npm/v/level-ws.svg?label=&logo=npm)](https://www.npmjs.com/package/level-ws) [![Node version](https://img.shields.io/node/v/level-ws.svg)](https://www.npmjs.com/package/level-ws) -[![Travis](https://img.shields.io/travis/com/Level/level-ws.svg?logo=travis&label=)](https://travis-ci.com/Level/level-ws) +[![Test](https://github.com/Level/level-ws/actions/workflows/test.yml/badge.svg)](https://github.com/Level/level-ws/actions/workflows/test.yml) [![npm](https://img.shields.io/npm/dm/level-ws.svg?label=dl)](https://www.npmjs.com/package/level-ws) -[![Coverage Status](https://coveralls.io/repos/github/Level/level-ws/badge.svg)](https://coveralls.io/github/Level/level-ws) +[![Coverage Status](https://codecov.io/gh/Level/level-ws/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/level-ws) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers) [![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors) diff --git a/package.json b/package.json index 51f988d..f05a78a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "level-ws.js", "scripts": { "test": "standard && hallmark && nyc node test.js", - "coverage": "nyc report --reporter=text-lcov | coveralls", + "coverage": "nyc report -r lcovonly", "hallmark": "hallmark --fix", "dependency-check": "dependency-check . test.js", "prepublishOnly": "npm run dependency-check" @@ -17,7 +17,6 @@ "xtend": "^4.0.1" }, "devDependencies": { - "coveralls": "^3.0.1", "dependency-check": "^3.3.0", "hallmark": "^3.1.0", "level": "^6.0.0",