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 a157a75
Show file tree
Hide file tree
Showing 37 changed files with 18,915 additions and 16,521 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,47 @@ 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: |
npx playwright install
npm i \
react@^17.0.2 \
react-dom@^17.0.2 \
storybook@^7.4.5 \
@types/[email protected] \
@storybook/test-runner@^0.15.2 \
@testing-library/jest-dom@^5.16.1 \
@testing-library/react@^12.1.3 \
@testing-library/react-hooks@^8.0.0
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]
npx playwright install
npm i \
react@^16.14 \
react-dom@^16.14 \
storybook@^7.4.5 \
@types/[email protected] \
@storybook/test-runner@^0.15.2 \
@testing-library/jest-dom@^5.16.1 \
@testing-library/react@^12.1.3 \
@testing-library/react-hooks@^8.0.0
npm run build
node_matrix: '["16.x", "18.x"]'
secrets:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npx playwright install
- run: npm run build
- run: ./tests/scripts/start-storybook.sh
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/wcag_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}
with:
build_script: npm run build:css && ./tests/scripts/start-storybook.sh
build_script: |
npx playwright install
npm run build:css && ./tests/scripts/start-storybook.sh
Loading

0 comments on commit a157a75

Please sign in to comment.