Update snapshots #5894
This file contains hidden or 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
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: Run Tests | |
| on: [push, pull_request] | |
| jobs: | |
| call_run_tests-react-19: | |
| uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1 | |
| with: | |
| build_script: | | |
| npx playwright install | |
| npm run build | |
| node_matrix: '["20.x"]' | |
| secrets: | |
| MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }} | |
| call_run_tests-react-18: | |
| uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1 | |
| with: | |
| build_script: | | |
| npm i \ | |
| react@^18.2.0 \ | |
| react-dom@^18.2.0 | |
| npm install --save-optional \ | |
| "@swc/core-linux-arm-gnueabihf" \ | |
| "@swc/core-linux-arm64-gnu" \ | |
| "@swc/core-linux-arm64-musl" \ | |
| "@swc/core-linux-x64-gnu" \ | |
| "@swc/core-linux-x64-musl" \ | |
| "@swc/core-win32-arm64-msvc" \ | |
| "@swc/core-win32-ia32-msvc" \ | |
| "@swc/core-win32-x64-msvc" | |
| npx playwright install | |
| npm run build | |
| node_matrix: '["20.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: | |
| # We have to install these swc libraries manually because | |
| # the post install script doesn't seem to run properly | |
| # after we install specific versions of packages. | |
| # More info at https://github.com/swc-project/swc/issues/5616#issuecomment-1651214641 | |
| build_script: | | |
| npm i \ | |
| react@^17.0.2 \ | |
| react-dom@^17.0.2 \ | |
| @testing-library/react@^12.1.3 \ | |
| @testing-library/react-hooks@^8.0.0 | |
| npm install --save-optional \ | |
| "@swc/core-linux-arm-gnueabihf" \ | |
| "@swc/core-linux-arm64-gnu" \ | |
| "@swc/core-linux-arm64-musl" \ | |
| "@swc/core-linux-x64-gnu" \ | |
| "@swc/core-linux-x64-musl" \ | |
| "@swc/core-win32-arm64-msvc" \ | |
| "@swc/core-win32-ia32-msvc" \ | |
| "@swc/core-win32-x64-msvc" | |
| npx playwright install | |
| npm run build | |
| node_matrix: '["20.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 \ | |
| react@^16.14 \ | |
| react-dom@^16.14 \ | |
| @testing-library/react@^12.1.3 \ | |
| @testing-library/react-hooks@^8.0.0 | |
| npm install --save-optional \ | |
| "@swc/core-linux-arm-gnueabihf" \ | |
| "@swc/core-linux-arm64-gnu" \ | |
| "@swc/core-linux-arm64-musl" \ | |
| "@swc/core-linux-x64-gnu" \ | |
| "@swc/core-linux-x64-musl" \ | |
| "@swc/core-win32-arm64-msvc" \ | |
| "@swc/core-win32-ia32-msvc" \ | |
| "@swc/core-win32-x64-msvc" | |
| npx playwright install | |
| npm run build | |
| node_matrix: '["20.x"]' | |
| secrets: | |
| MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }} |