From 0828635d2f5db682c3a07cf8565d0b764abb4115 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Wed, 8 Jul 2020 17:37:51 +0100 Subject: [PATCH] Move from Travis to GitHub Actions (#793) --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/node.js.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..7a690b78 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.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 i + - run: npm run build --if-present + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 43558f39..00000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -sudo: false -language: node_js -node_js: - - "node" -dist: trusty -addons: - chrome: stable - firefox: latest -cache: - directories: - - node_modules