From 2afe4154f82b85e08b81d87bf1956f1789ae321b Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 28 Jan 2021 15:11:35 +0100 Subject: [PATCH] =?UTF-8?q?Travis=20CI=20->=20GitHub=20Actions=20?= =?UTF-8?q?=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 57 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 17 ------------ 2 files changed, 57 insertions(+), 17 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..f7e079ef --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,57 @@ +name: test + +on: [push, pull_request] + +jobs: + unit-tests: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + + - run: npm run lint + - run: npm run test-unit + + integration-tests: + needs: unit-tests + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + + - run: npm run lint + - run: npm run test-integration + + e2e-tests: + needs: integration-tests + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x] + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + + - run: npm run lint + - run: npm run test-e2e diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 99632a4f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false -language: node_js -node_js: - - 'stable' - - 'lts/*' - - '10' -cache: npm -script: - - npm run lint - - npm run test -jobs: - include: - - name: test-e2e - script: npm run test-e2e - node_js: '10' - allow_failures: - - name: test-e2e