|
58 | 58 | HARNESS_AWS_REGION: us-west-2 |
59 | 59 | HARNESS_DEVICE_FARM_PROJECT_ARN: arn:aws:devicefarm:us-west-2:633665345122:project:210b1942-012b-4653-9673-f3ff91c5e649 |
60 | 60 | HARNESS_XCODE_VERSION: "26.2" |
| 61 | + HARNESS_PROJECT_ROOT: apps/simple-camera |
61 | 62 | HARNESS_ANDROID_APP_BUILD_OUTPUT: apps/simple-camera/android/app/build/outputs/apk/debug/app-debug.apk |
62 | 63 | HARNESS_IOS_APP_BUILD_OUTPUT: apps/simple-camera/ios/build/devicefarm/SimpleCamera.ipa |
63 | 64 | HARNESS_IOS_DERIVED_DATA_OUTPUT: apps/simple-camera/ios/build/devicefarm/DerivedData |
| 65 | + HARNESS_IOS_IPA_ARTIFACT_NAME: harness-ios-ipa |
64 | 66 | HARNESS_DEVICE_FARM_TEST_PACKAGE_OUTPUT: devicefarm-test-package.zip |
65 | 67 | HARNESS_ANDROID_BUNDLE_ID: com.margelo.nitro.camera.example.simple |
66 | 68 | HARNESS_ANDROID_DEVICE_ARCH: ${{ github.event.inputs.device_arch || 'arm64-v8a' }} |
67 | | - # Name of the device pool on AWS to pick Android devices from. |
68 | | - # (iOS pool config lives alongside the `test-ios` job and will be restored |
69 | | - # when iOS Device Farm testing is re-enabled — see `build-ios`.) |
| 69 | + # Name of the device pools on AWS to pick devices from. |
70 | 70 | HARNESS_DEVICE_FARM_ANDROID_DEVICE_POOL_ARN: LatestFlagshipsDynamic |
| 71 | + HARNESS_DEVICE_FARM_IOS_DEVICE_POOL_ARN: iPhonePool |
71 | 72 |
|
72 | 73 | jobs: |
73 | 74 | detect-changes: |
@@ -127,12 +128,11 @@ jobs: |
127 | 128 | runs-on: ubuntu-latest |
128 | 129 | needs: |
129 | 130 | - detect-changes |
130 | | - # iOS Device Farm testing is temporarily disabled (see `test-ios`/`build-ios` jobs), |
131 | | - # so this only needs to run when Android testing is scheduled. |
132 | | - if: ${{ needs.detect-changes.outputs.run_android == 'true' }} |
| 131 | + if: ${{ needs.detect-changes.outputs.run_android == 'true' || needs.detect-changes.outputs.run_ios == 'true' }} |
133 | 132 | outputs: |
134 | 133 | test_package_arn: ${{ steps.upload-test-package.outputs.upload-arn }} |
135 | 134 | android_test_spec_arn: ${{ steps.upload-android-test-spec.outputs.upload-arn }} |
| 135 | + ios_test_spec_arn: ${{ steps.upload-ios-test-spec.outputs.upload-arn }} |
136 | 136 | steps: |
137 | 137 | - uses: actions/checkout@v6 |
138 | 138 | with: |
@@ -175,6 +175,18 @@ jobs: |
175 | 175 | content-type: application/octet-stream |
176 | 176 | upload-name: AwsTestSpecAndroid-${{ github.run_id }}-${{ github.run_attempt }}.yml |
177 | 177 |
|
| 178 | + - name: Upload Device Farm iOS test spec |
| 179 | + if: ${{ needs.detect-changes.outputs.run_ios == 'true' }} |
| 180 | + id: upload-ios-test-spec |
| 181 | + uses: ./.github/actions/upload-devicefarm-artifact |
| 182 | + with: |
| 183 | + project-arn: ${{ env.HARNESS_DEVICE_FARM_PROJECT_ARN }} |
| 184 | + aws-region: ${{ env.HARNESS_AWS_REGION }} |
| 185 | + file-path: apps/simple-camera/device-farm-tests/AwsTestSpecIOS.yml |
| 186 | + upload-type: APPIUM_NODE_TEST_SPEC |
| 187 | + content-type: application/octet-stream |
| 188 | + upload-name: AwsTestSpecIOS-${{ github.run_id }}-${{ github.run_attempt }}.yml |
| 189 | + |
178 | 190 | test-android: |
179 | 191 | name: Test Android |
180 | 192 | runs-on: ubuntu-latest |
|
0 commit comments