diff --git a/.github/actions/android-e2e/action.yaml b/.github/actions/android-e2e/action.yaml index 24c9978cb8d..af2e9dd76f9 100644 --- a/.github/actions/android-e2e/action.yaml +++ b/.github/actions/android-e2e/action.yaml @@ -37,6 +37,10 @@ runs: run: pnpm install --frozen-lockfile shell: bash + - name: Build Metro packages + run: npx nx run-many --targets=build --projects=tag:type:metro --parallel=4 + shell: bash + - name: Install Maestro CLI run: | curl -Ls "https://get.maestro.mobile.dev" | bash diff --git a/.github/actions/ios-e2e/action.yaml b/.github/actions/ios-e2e/action.yaml index 3810ad4a445..30ccef41ee8 100644 --- a/.github/actions/ios-e2e/action.yaml +++ b/.github/actions/ios-e2e/action.yaml @@ -35,6 +35,10 @@ runs: run: pnpm install --frozen-lockfile shell: bash + - name: Build Metro packages + run: npx nx run-many --targets=build --projects=tag:type:metro --parallel=4 + shell: bash + - name: Install Maestro CLI and iOS Utilities run: | curl -Ls "https://get.maestro.mobile.dev" | bash diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index efe67fc7d7f..400e7c15d77 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -139,7 +139,7 @@ jobs: secrets: inherit e2e-metro: - needs: [checkout-install, build-metro] + needs: checkout-install uses: ./.github/workflows/e2e-metro.yml secrets: inherit diff --git a/.github/workflows/e2e-metro.yml b/.github/workflows/e2e-metro.yml index 8206095bf70..3e903797935 100644 --- a/.github/workflows/e2e-metro.yml +++ b/.github/workflows/e2e-metro.yml @@ -13,7 +13,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - app_name: [example-host] + app_name: [metro-example-host] env: ANDROID_EMULATOR_API_LEVEL: 28 ANDROID_EMULATOR_TARGET: default @@ -36,7 +36,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - app_name: [example-host] + app_name: [metro-example-host] env: RUBY_VERSION: 2.7.6 MAESTRO_VERSION: 1.39.13 diff --git a/apps/metro-example-host/package.json b/apps/metro-example-host/package.json index a64fa112c3c..b763544a032 100644 --- a/apps/metro-example-host/package.json +++ b/apps/metro-example-host/package.json @@ -1,5 +1,5 @@ { - "name": "example-host", + "name": "metro-example-host", "version": "0.0.1", "private": true, "scripts": {