Bump eslint from 8.57.0 to 9.6.0 #361
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
types: | |
name: Types | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Check types | |
run: npm run tsd | |
lint: | |
name: Code style | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Check code style | |
run: npm run lint | |
test: | |
name: Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
react-version: [17.x, 18.x, beta] | |
include: | |
- node-version: 14.x | |
react-version: 16.0.0 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Node.js ${{matrix.node-version}} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Install dependencies | |
run: npm install | |
- name: Install React ${{matrix.react-version}} | |
if: matrix.react-version != '18.x' | |
run: | | |
npm install --save-dev \ | |
react@${{matrix.react-version}} \ | |
react-dom@${{matrix.react-version}} | |
- name: Run tests | |
run: npm run tests-only |