diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9ea8903c..c2d614cb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,45 +12,57 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - name: Checkout submodules - run: git submodule update --init - - name: Install Node.js - uses: actions/setup-node@v1 - with: - node-version: 12 - - name: Install Packages - run: npm install - - name: Lint - run: npm run -s lint + - name: Checkout + uses: actions/checkout@v2 + - name: Checkout submodules + run: git submodule update --init + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + - name: Install Packages + run: npm install + - name: Lint + run: npm run -s lint test: name: Test - strategy: matrix: - eslint: [6, 5] - node: [13, 12, 10, 8, "8.10.0"] - exclude: - # Run ESLint 5 on only the LTS. - - node: 13 - eslint: 5 - - node: 10 - eslint: 5 - - node: 8 - eslint: 5 - - node: "8.10.0" - eslint: 5 + eslint: [7] + node: [14] + os: [ubuntu-latest] + include: + # On other platforms + - eslint: 7 + node: 14 + os: windows-latest + - eslint: 7 + node: 14 + os: macos-latest + # On old Node.js versions + - eslint: 7 + node: 12 + os: ubuntu-latest + - eslint: 7 + node: 10 + os: ubuntu-latest + # On old ESLint versions + - eslint: 6 + node: 14 + os: ubuntu-latest + - eslint: 5 + node: 14 + os: ubuntu-latest + # On the minimum supported ESLint/Node.js version + - eslint: 5 + node: 8.10.0 + os: ubuntu-latest - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v1 - with: - fetch-depth: 1 + uses: actions/checkout@v2 - name: Checkout submodules run: git submodule update --init - name: Install Node.js v${{ matrix.node }} @@ -61,15 +73,15 @@ jobs: run: npm install - name: Install ESLint v${{ matrix.eslint }} run: | - if [ ${{ matrix.eslint }} -eq 6 ]; then - cd test/fixtures/eslint - npm install - else + if [ ${{ matrix.eslint }} -eq 5 ]; then npm install --no-save eslint@5.16.0 cd test/fixtures/eslint git checkout v5.16.0 npm install eslint-utils@1.4.0 npm install + else + cd test/fixtures/eslint + npm install fi - name: Build run: npm run -s build diff --git a/package.json b/package.json index 6705f0a9..2195ace8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "debug": "^4.1.1", "eslint-scope": "^5.0.0", "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", + "espree": "^7.0.0", "esquery": "^1.0.1", "lodash": "^4.17.15" }, @@ -27,13 +27,13 @@ "@types/lodash": "^4.14.120", "@types/mocha": "^5.2.4", "@types/node": "^10.12.21", - "@typescript-eslint/parser": "^1.2.0", + "@typescript-eslint/parser": "^2.31.0", "babel-eslint": "^10.0.1", "chokidar": "^2.0.4", "codecov": "^3.1.0", "cross-spawn": "^6.0.5", "dts-bundle": "^0.7.3", - "eslint": "^6.1.0", + "eslint": "^7.0.0", "fs-extra": "^7.0.1", "mocha": "^6.1.4", "npm-run-all": "^4.1.5",