Skip to content

Commit 9da6aad

Browse files
committed
Run CI on React 18 and 19
1 parent 2f3d91c commit 9da6aad

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
react-version: [18, 19]
16+
1117
steps:
1218
- uses: actions/checkout@v4
1319

@@ -19,11 +25,14 @@ jobs:
1925
- name: Install dependencies
2026
run: npm install
2127

28+
- name: Install React ${{ matrix.react-version }}
29+
run: npm install --no-save react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }}
30+
2231
- name: List dependency versions
2332
run: |
2433
echo "npm: $(npm --version)"
2534
echo "node: $(node --version)"
26-
npm ls || true
35+
npm ls react react-dom || true
2736
2837
- name: Run tests
2938
run: npm run test

0 commit comments

Comments
 (0)