test(react): migrate to builder architecture (#26959)

This commit is contained in:
Liam DeBeasi
2023-03-17 16:21:21 -04:00
committed by GitHub
parent 162d139abe
commit e3a1d7b8c3
77 changed files with 30446 additions and 414 deletions

View File

@@ -1,5 +1,8 @@
name: 'Test React E2E'
description: 'Test React E2E'
inputs:
app:
description: 'The specific test application'
runs:
using: 'composite'
steps:
@@ -21,19 +24,24 @@ 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/test
- name: Install Dependencies
run: npm install
shell: bash
working-directory: ./packages/react/test-app
- name: Sync
working-directory: ./packages/react/test/build/${{ inputs.app }}
- name: Sync Built Changes
run: npm run sync
shell: bash
working-directory: ./packages/react/test-app
working-directory: ./packages/react/test/build/${{ inputs.app }}
- name: Build
run: npm run build
shell: bash
working-directory: ./packages/react/test-app
- name: Run E2E Tests
working-directory: ./packages/react/test/build/${{ inputs.app }}
- name: Run Tests
run: npm run e2e
shell: bash
working-directory: ./packages/react/test-app
working-directory: ./packages/react/test/build/${{ inputs.app }}

View File

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