Skip to content

Commit 2e65b19

Browse files
committed
ci: test with react 18
1 parent b6de5c0 commit 2e65b19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
node-version: [10.x, 12.x, 14.x, 16.x]
12+
react-version: [17.x, 18.x]
1213
steps:
1314
- name: Checkout sources
1415
uses: actions/checkout@v3
@@ -18,5 +19,8 @@ jobs:
1819
node-version: ${{matrix.node-version}}
1920
- name: Install dependencies
2021
run: npm install
22+
- name: Install React ${{matrix.react-version}}
23+
if: matrix.react-version != '17.x'
24+
run: npm install -D react@${{matrix.react-version}} react-test-renderer ${{matrix.react-version}}
2125
- name: Run tests
2226
run: npm test

0 commit comments

Comments
 (0)