From 19ed1fc7b3609d50a9cbc5c4b5340aa1a120720e Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 30 Jun 2021 11:26:11 +0200 Subject: [PATCH] Set up CI testing using Github Actions --- .github/workflows/build.yaml | 23 +++++++++++++++++++++++ .travis.yml | 5 ----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..5f8dfe97e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ +name: Node.js CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run test + env: + CI: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dcb0ff840..000000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "lts/*" - -script: npm test && npm run lint