chore(deps-dev): bump the minor-development-deps group across 1 direc… #1302
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18 | |
- 20 | |
react: [16, 17, 18] | |
name: build (${{ matrix.node }} w/ React ${{ matrix.react }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Compatible @testing-library/react | |
if: matrix.react == '16' || matrix.react == '17' | |
run: | | |
npm install @testing-library/react@12 | |
- name: Install React v${{ matrix.react }} | |
run: npm i react@${{ matrix.react }} react-dom@${{ matrix.react }} | |
- name: Run tests on React ${{ matrix.react }} | |
run: REACT_VERSION=${{ matrix.react }} npm test |