From 661b57c731b370353bfc8ca5725954cfd6dc5967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 30 Nov 2021 14:00:06 +0100 Subject: [PATCH 1/2] chore(CI): simplify testing strategy --- .github/workflows/CI.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1d61214..0c4bc15 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,21 +10,35 @@ on: jobs: test: name: Test - runs-on: ubuntu-latest strategy: matrix: - node: [12.x, 10.x, 8.x] + os: [ubuntu-latest] + eslint: [6] + node: [8, 10, 12, 14, 16, 18] + include: + # On other platforms + - os: windows-latest + node: 18 + - os: macos-latest + node: 18 + # On the minimum supported ESLint/Node.js version + - eslint: 6.6.0 + node: 8.10.0 + + runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v1 - with: - fetch-depth: 1 + uses: actions/checkout@v3 - name: Install Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - name: Install Packages run: npm install + env: + CI: true + - name: Install ESLint@${{ matrix.eslint }} + run: npm install eslint@${{ matrix.eslint }} - name: Test run: npm test - name: Send Coverage From 7a4769f1e4ff31a79754abaa327e15092f2c8341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 30 Nov 2021 18:04:44 +0100 Subject: [PATCH 2/2] feat: drop Node 8 & 10 support BREAKING CHANGE: Requires Node@^12.22.0 || ^14.17.0 || >=16.0.0 --- .github/workflows/CI.yml | 4 ++-- README.md | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0c4bc15..c0d188f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,7 +14,7 @@ jobs: matrix: os: [ubuntu-latest] eslint: [6] - node: [8, 10, 12, 14, 16, 18] + node: [12.22.0, 12, 14.17.0, 14, 16, 18] include: # On other platforms - os: windows-latest @@ -23,7 +23,7 @@ jobs: node: 18 # On the minimum supported ESLint/Node.js version - eslint: 6.6.0 - node: 8.10.0 + node: 12.22.0 runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 2d9263c..a9262ad 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ npm install --save-dev eslint @mysticatea/eslint-plugin ### Requirements -- Node.js `^8.10.0` or newer versions. -- ESLint `^6.3.0` or newer versions. +- Node.js `^12.22.0 || ^14.17.0 || >=16.0.0` or newer versions. +- ESLint `^6.6.0` or newer versions. ## 📖 Usage diff --git a/package.json b/package.json index 65aad32..9ed52ee 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "13.0.0", "description": "Additional ESLint rules.", "engines": { - "node": ">=8.10.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "main": "index.js", "files": [