Skip to content

Bump the dev-dependencies group across 1 directory with 2 updates #18

Bump the dev-dependencies group across 1 directory with 2 updates

Bump the dev-dependencies group across 1 directory with 2 updates #18

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
checks:
name: Lint, typecheck & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run build
- run: npm run test:coverage
- uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
test:
name: Test (Node ${{ matrix.node }}, React ${{ matrix.react }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [20, 22, 24]
react: [18, 19]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }}
- run: npm test
test-legacy:
name: Smoke test (React ${{ matrix.react }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
react: [16, 17]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
# --legacy-peer-deps: @testing-library/react requires React 18+, but it
# is unused by the legacy suite.
- run: npm install --no-save --legacy-peer-deps react@${{ matrix.react }} react-dom@${{ matrix.react }}
- run: npm run test:legacy