Skip to content

Commit

Permalink
upgrade to react18 file updates
Browse files Browse the repository at this point in the history
J=BACK-2923
TEST=auto
  • Loading branch information
jesuyedavid committed Feb 8, 2024
1 parent d9e5ff4 commit c97edf6
Show file tree
Hide file tree
Showing 35 changed files with 18,913 additions and 16,520 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,49 @@ name: Run Tests
on: [push, pull_request]

jobs:
call_run_tests-react-18:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
build_script: |
npx playwright install
npm run build
node_matrix: '["16.x", "18.x"]'
secrets:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}
call_run_tests-react-17:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
build_script: |
npm i \
react@^17.0.2 \
react-dom@^17.0.2 \
@storybook/test-runner@^0.15.2 \
storybook@^7.4.5 \
[email protected] \
@testing-library/jest-dom@^5.16.1 \
@testing-library/react@^12.1.3 \
@testing-library/react-hooks@^8.0.0 \
@testing-library/user-event@^13.5.0 \
npx playwright install
npm run build
node_matrix: '["16.x", "18.x"]'
secrets:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}

call_run_tests-react-16:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
build_script: |
npm i -D [email protected] [email protected]
npm i \
react@^16.14 \
react-dom@^16.14 \
@storybook/test-runner@^0.15.2 \
storybook@^7.4.5 \
[email protected] \
@testing-library/jest-dom@^5.16.1 \
@testing-library/react@^12.1.3 \
@testing-library/react-hooks@^8.0.0 \
@testing-library/user-event@^13.5.0 \
npx playwright install
npm run build
node_matrix: '["16.x", "18.x"]'
secrets:
Expand Down
Loading

0 comments on commit c97edf6

Please sign in to comment.