From 18154368e7da86df45f7105bd06164fe173fb106 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 29 May 2020 14:01:25 -0600 Subject: [PATCH] Test as a GitHub action --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 14 ----------- 2 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..93f67562 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + CI: true + +jobs: + run: + name: Node ${{ matrix.node }} / ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + node: + - 6 + - 8 + - 10 + - 12 + - 14 + + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Set Node.js version + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: node --version + - run: npm --version + + - name: Install npm dependencies + run: npm install # switch to `ci` when Node.js 6.x is dropped + + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c8dd396e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js - -node_js: - - "6" - - "8" - - "10" - - "12" - -cache: npm - -branches: - only: - - master - - /^greenkeeper/.*$/