-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump react to v17.x (#275)
Co-authored-by: Gabe <[email protected]> Co-authored-by: Jon Ursenbach <[email protected]>
- Loading branch information
1 parent
5f28b8e
commit eb29710
Showing
4 changed files
with
195 additions
and
231 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,10 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
node-version: [14.x, 16.x] | ||
react: [16, 17] | ||
|
||
name: build (${{ matrix.node-version }} w/ React ${{ matrix.react }} | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -25,5 +28,19 @@ jobs: | |
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
- name: Install React v${{ matrix.react }} | ||
run: npm i react@${{ matrix.react }} react-dom@${{ matrix.react }} | ||
|
||
- name: Install React 16 Enzyme adapter | ||
if: matrix.react == '16' | ||
run: | | ||
npm remove @wojtekmaj/enzyme-adapter-react-17 | ||
npm install enzyme-adapter-react-16 | ||
- name: Run tests on React 16 | ||
if: matrix.react == '16' | ||
run: REACT_VERSION=16 npm test | ||
|
||
- name: Run tests on React 17 | ||
if: matrix.react == '17' | ||
run: npm test |
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
Oops, something went wrong.