diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 11e402c9..5e42affb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,13 +6,17 @@ jobs: main: strategy: matrix: - node: [10.12, 10, 12.0, 12, 14, 15] + eslint: [7, 8] + node: [10.12, 10, 12.0, 12, 14, 16] + exclude: + - eslint: 8 + node: 10 + - eslint: 8 + node: 10.12 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.0 - name: ⬇️ Checkout repo uses: actions/checkout@v2 @@ -22,10 +26,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 diff --git a/package.json b/package.json index 0db58113..0d7151c5 100644 --- a/package.json +++ b/package.json @@ -25,20 +25,20 @@ "dependencies": {}, "devDependencies": { "doctoc": "^2.0.0", - "eslint": "^7.23.0", - "eslint-config-prettier": "^8.1.0", - "eslint-plugin-eslint-plugin": "^3.0.0", - "eslint-plugin-jest": "^24.3.4", + "eslint": "^8.0.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-eslint-plugin": "^4.0.0-0", + "eslint-plugin-jest": "^24.7.0", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^3.4.1", "husky": "^6.0.0", "jest": "^26.6.3", - "jest-runner-eslint": "^0.10.0", + "jest-runner-eslint": "^0.11.1", "lint-staged": "^10.5.4", "prettier": "^2.2.1" }, "peerDependencies": { - "eslint": "^7.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "engines": { "node": "^10.12.0 || >=12.0.0"