diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7d52ca1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: + push: + pull_request: + branches: [$default-branch] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 8.x + - 10.x + - 11.x + - 20.x + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm i + - run: npm test + - run: npm run cover diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ad1dd1e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js - -node_js: - - 8 - - 10 - - 11 - -env: - - NODE_ENV=test - -sudo: false - -after_success: npm run cover diff --git a/README.md b/README.md index 81098cb..750ba84 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ Session wrapper around supertest. -[![Build -Status](https://travis-ci.org/rjz/supertest-session.svg?branch=master)](https://travis-ci.org/rjz/supertest-session) [![Coverage Status](https://coveralls.io/repos/rjz/supertest-session/badge.png)](https://coveralls.io/r/rjz/supertest-session)