test(react-router): migrate to builder architecture (#26961)

This commit is contained in:
Liam DeBeasi
2023-03-17 17:13:21 -04:00
committed by GitHub
parent 88bd8a47c5
commit 115f2b5fa4
172 changed files with 2310 additions and 4505 deletions

View File

@ -1,5 +1,8 @@
name: 'Test React Router E2E'
description: 'Test React Router '
description: 'Test React Router'
inputs:
app:
description: 'The specific test application'
runs:
using: 'composite'
steps:
@ -21,19 +24,23 @@ runs:
name: ionic-react-router
path: ./packages/react-router
filename: ReactRouterBuild.zip
- name: Create Test App
run: ./build.sh ${{ inputs.app }}
shell: bash
working-directory: ./packages/react-router/test
- name: Install Dependencies
run: npm install
shell: bash
working-directory: ./packages/react-router/test-app
- name: Sync
working-directory: ./packages/react-router/test/build/${{ inputs.app }}
- name: Sync Built Changes
run: npm run sync
shell: bash
working-directory: ./packages/react-router/test-app
working-directory: ./packages/react-router/test/build/${{ inputs.app }}
- name: Build
run: npm run build
shell: bash
working-directory: ./packages/react-router/test-app
- name: Run E2E Tests
working-directory: ./packages/react-router/test/build/${{ inputs.app }}
- name: Run Tests
run: npm run e2e
shell: bash
working-directory: ./packages/react-router/test-app
working-directory: ./packages/react-router/test/build/${{ inputs.app }}

View File

@ -168,11 +168,26 @@ jobs:
- uses: ./.github/workflows/actions/build-react-router
test-react-router-e2e:
strategy:
fail-fast: false
matrix:
apps: [reactrouter5]
needs: [build-react, build-react-router]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/actions/test-react-router-e2e
with:
app: ${{ matrix.apps }}
verify-test-react-router-e2e:
if: ${{ always() }}
needs: test-react-router-e2e
runs-on: ubuntu-latest
steps:
- name: Check build matrix status
if: ${{ needs.test-react-router-e2e.result != 'success' }}
run: exit 1
test-react-e2e:
strategy: