From 74a9e89470ad2668c66c10235654959f3ce7939f Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 2 Dec 2021 20:28:16 -0500 Subject: [PATCH] chore: convert Travis to GitHub Actions --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 40 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1f2d9517 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + pull_request: + push: + +jobs: + + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node: + - 12 + - 14 + - 16 + - 17 + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - name: 🛑 Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: ⬇️ Checkout + uses: actions/checkout@v2 + + - name: ⎔ Setup node ${{ matrix.node }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + cache: npm + + - name: 📥 Download deps + run: npm ci + + - name: Test + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5444432c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js - -node_js: - - 12 - - 10 - -jobs: - include: - - stage: release - node_js: lts/* - deploy: - provider: script - skip_cleanup: true - script: - - npm run semantic-release - -branches: - only: - - master - - /^greenkeeper/.*$/