From d2507faeac988fca3f9cb0d6e92556d601116e66 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Feb 2021 05:39:52 -0800 Subject: [PATCH 1/3] chore: move from Travis to GitHub Actions Travis isn't running because we're out of credits. Move to GitHub Actions. --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 32 insertions(+), 9 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 0000000..eb4f877 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,32 @@ +# 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, 15.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 ci + - run: npm run build --if-present + - run: npm run test-ci + env: + CI: true + - run: bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 91e55ad..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - "8" - - "10" - - "12" - - "13" -cache: npm -script: 'npm run test-ci' -after_script: 'bash <(curl -s https://codecov.io/bash)' From 8130ba29e34a84ff24059bec9515ebf9eaea24fa Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Feb 2021 05:48:09 -0800 Subject: [PATCH 2/3] fixup! chore: move from Travis to GitHub Actions --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eb4f877..c6b1739 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm ci From 3d041e0ec95fe9c29c61e8b278d9d96164e6dcfd Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Feb 2021 05:52:03 -0800 Subject: [PATCH 3/3] fixup! fixup! chore: move from Travis to GitHub Actions --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c6b1739..8279e10 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -24,7 +24,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm install - run: npm run build --if-present - run: npm run test-ci env: