chore(deps): update typescript-eslint monorepo to v8 (major) #1241
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: Build and Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- 12 | |
- 14 | |
- 16 | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- run: npm run test:coverage | |
- name: Lint once | |
run: npm run lint | |
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14' | |
- name: Build once | |
run: npm run build | |
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14' | |
- name: Check that TypeScript Example runs once | |
run: npm run tsexample1 | grep "The compare() function" | |
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14' | |
- name: Check that JavaScript Example runs once | |
run: npm run jsexample1 | grep "toHash() and compare() functions" | |
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14' | |
- uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true |