diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8ff0161..a991b458 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v1 with: - node: 12.x + node: 14 - name: Install Packages run: npm install - name: Lint @@ -29,19 +29,36 @@ jobs: strategy: matrix: - eslint: [6.x, 5.x, 4.x] - node: [12.x, 10.x, 8.x] + eslint: [7, 6, 5, 4] + node: [14, 12, 12.0, 10, 10.12] exclude: - # Run ESLint 5.x only on the latest Node. - - eslint: 5.x - node: 8.x - - eslint: 5.x - node: 10.x - # Run ESLint 4.x only on the latest Node. - - eslint: 4.x - node: 8.x - - eslint: 4.x - node: 10.x + # Run ESLint 6 only on the latest Node. + - eslint: 6 + node: 10.12 + - eslint: 6 + node: 10 + - eslint: 6 + node: 12.0 + - eslint: 6 + node: 12 + # Run ESLint 5 only on the latest Node. + - eslint: 5 + node: 10.12 + - eslint: 5 + node: 10 + - eslint: 5 + node: 12.0 + - eslint: 5 + node: 12 + # Run ESLint 4 only on the latest Node. + - eslint: 4 + node: 10.12 + - eslint: 4 + node: 10 + - eslint: 4 + node: 12.0 + - eslint: 4 + node: 12 steps: - name: Checkout diff --git a/package.json b/package.json index cd13fed7..02da48b4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "3.0.0", "description": "ESLint plugin about ECMAScript syntactic features.", "engines": { - "node": ">=8.10.0" + "node": "^10.12.0 || >=12.0.0" }, "main": "lib/index.js", "files": [ @@ -24,7 +24,7 @@ "codecov": "^3.5.0", "eslint": "^6.2.2", "eslint4b": "^6.2.2", - "espree": "^6.1.1", + "espree": "^7.0.0", "globals": "^12.0.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.5",