v4.2.0 #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Tests: node.js' | |
on: [pull_request, push] | |
jobs: | |
matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
majors: ${{ steps.set-matrix.outputs.requireds }} | |
steps: | |
- uses: ljharb/actions/node/matrix@main | |
id: set-matrix | |
with: | |
versionsAsRoot: true | |
type: 'majors' | |
preset: '>=10' | |
majors: | |
needs: [matrix] | |
name: 'latest majors' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ${{ fromJson(needs.matrix.outputs.majors) }} | |
eslint: | |
- 8 | |
- 7 | |
include: | |
- node-version: 14 | |
eslint: 7.7 | |
exclude: | |
- node-version: 15 | |
eslint: 8 | |
- node-version: 13 | |
eslint: 8 | |
- node-version: 11 | |
eslint: 8 | |
- node-version: 10 | |
eslint: 8 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ljharb/actions/node/install@main | |
name: 'nvm install ${{ matrix.node-version }} && npm install' | |
with: | |
node-version: ${{ matrix.node-version }} | |
skip-ls-check: true | |
- run: npm install --no-save eslint@${{ matrix.eslint }} | |
- run: npm install --no-save @eslint/eslintrc@0 | |
if: ${{ matrix.eslint != 8 }} | |
- run: npm prune > /dev/null | |
- run: npm ls > /dev/null | |
- run: npm run cover | |
- uses: codecov/codecov-action@v2 | |
node: | |
name: 'node 10+' | |
needs: [majors] | |
runs-on: ubuntu-latest | |
steps: | |
- run: 'echo tests completed' |