Skip to content

build(deps-dev): bump the eslint group across 1 directory with 2 updates #306

build(deps-dev): bump the eslint group across 1 directory with 2 updates

build(deps-dev): bump the eslint group across 1 directory with 2 updates #306

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
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:
matrix:
node-version: [18.x, 20.x, 22.x]
react-version: [18.x, 19.x]
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 --force --save-dev \
react@${{matrix.react-version}} \
react-dom@${{matrix.react-version}} \
react-test-renderer@${{matrix.react-version}}
- name: Run tests
run: npm run tests-only
- name: Submit coverage
if: matrix.node-version == '20.x' && matrix.react-version == '18.x'
uses: coverallsapp/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}