From 364b664db50e3534ed7c4f05c1f2e7df8d1b730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 26 Nov 2021 16:52:22 +0100 Subject: [PATCH 1/2] chore(CI): support testing against multiple ESLint versions --- .github/workflows/CI.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 11e402c9..40f36c99 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,13 +6,12 @@ jobs: main: strategy: matrix: - node: [10.12, 10, 12.0, 12, 14, 15] + eslint: [7] + node: [10.12, 10, 12.0, 12, 14, 16] runs-on: ubuntu-latest steps: - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} + uses: styfle/cancel-workflow-action@0.9.1 - name: ⬇️ Checkout repo uses: actions/checkout@v2 @@ -22,10 +21,13 @@ jobs: with: node-version: ${{ matrix.node }} - - name: 📥 Download deps + - name: 📥 Download dependencies uses: bahmutov/npm-install@v1 with: useLockFile: false + - name: 📥 Install ESLint v${{ matrix.eslint }} + run: npm install eslint@${{ matrix.eslint }} + - name: ▶️ Run test script run: npm run test -- --runInBand From 7ac06ac3aef4efa288917babff41649cc52fef53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 6 Dec 2021 22:44:09 +0100 Subject: [PATCH 2/2] feat: drop Node 10 support BREAKING CHANGE: Requires Node@^12.22.0 || ^14.17.0 || >=16.0.0 --- .github/workflows/CI.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 40f36c99..f547602e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: eslint: [7] - node: [10.12, 10, 12.0, 12, 14, 16] + node: [12.22.0, 12, 14.17.0, 14, 16] runs-on: ubuntu-latest steps: - name: 🛑 Cancel Previous Runs diff --git a/package.json b/package.json index 0db58113..ad9aaf83 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint": "^7.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "license": "ISC", "lint-staged": {