From c5e81d23c0eba647a688db04b12884446948325d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 29 Oct 2020 15:32:58 +0100 Subject: [PATCH 1/5] CI: Remove Windows jobs We don't have any OS-specific code and don't do anything with files, so this seems somewhat unnecessary. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea8f97c..45be269 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,11 +28,10 @@ jobs: test: name: Tests - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest, windows-latest] node-version: [10.x, 12.x] steps: From 342a1a2d4c3701c1d69b13f8d8c5687731236f0d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 29 Oct 2020 15:33:43 +0100 Subject: [PATCH 2/5] CI: Adjust test jobs to include Node.js version --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45be269..60e4e4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,14 +26,14 @@ jobs: - run: yarn install - run: yarn lint - test: - name: Tests - runs-on: ubuntu-latest - + test-node: strategy: matrix: node-version: [10.x, 12.x] + name: Tests (Node.js ${{ matrix.node-version }}) + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 From 78c48021aaf4080db821b071a3f299161ef94590 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 29 Oct 2020 15:34:27 +0100 Subject: [PATCH 3/5] CI: Add Node.js 14 job --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60e4e4a..4c492f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: test-node: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [10.x, 12.x, 14.x] name: Tests (Node.js ${{ matrix.node-version }}) runs-on: ubuntu-latest From 684040844345a672c819aba8d8fb8a41a503b91d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 29 Oct 2020 15:35:28 +0100 Subject: [PATCH 4/5] CI: Use Node.js 14 by default --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c492f0..0fbebf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 14.x - run: yarn install - run: yarn lint From 67354102be4e1a59fb58852e2fe03e8ed417b6fc Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 29 Oct 2020 15:36:50 +0100 Subject: [PATCH 5/5] CI: Test on different ESLint versions --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fbebf5..7899177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,3 +42,21 @@ jobs: - run: yarn install - run: yarn test --coverage + + test-eslint: + strategy: + matrix: + eslint-version: [7.0.0, 6.0.0] + + name: Tests (ESLint ${{ matrix.eslint-version }}) + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 14.x + + - run: yarn install + - run: yarn add --dev eslint@${{ matrix.eslint-version }} + - run: yarn test