Skip to content

Commit

Permalink
ci: fix react 16 and 17 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kotarella1110 committed Nov 21, 2022
1 parent b3ca86c commit 48c16c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
run: npm ci
- name: Install React ${{ matrix.react-version }}
run: |
npm install --D --force \
npm install --D --legacy-peer-deps \
react@${{ matrix.react-version }} \
react-test-renderer@${{ matrix.react-version }} \
@testing-library/react@12
@testing-library/react@12 \
@testing-library/react-hooks
- name: Replace @testing-library/react with @testing-library/react-hooks
run: npx replace@1.2.2 '@testing-library/react' '@testing-library/react-hooks' tests -r
- name: Test
run: npm test
env:
Expand Down

0 comments on commit 48c16c9

Please sign in to comment.