diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1d61214..c0d188f 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: [12.22.0, 12, 14.17.0, 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: 12.22.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 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": [