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
| name: iOS Maestro on Devicecloud, Upload and Run | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| fetch-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install npm packages | |
| run: npm install | |
| - name: Setup Expo and EAS CLI | |
| uses: expo/expo-github-action@v8 | |
| with: | |
| eas-version: latest | |
| token: ${{ secrets.EXPO_TOKEN }} | |
| - name: Get or create development build | |
| id: get-build | |
| uses: ./.github/actions/get-ios-build | |
| - name: Download iOS build artifact | |
| run: | | |
| curl -L -o ./ios-build.tar.gz "${{ env.ARTIFACT_URL }}" \ | |
| -H "Authorization: Bearer ${{ secrets.EXPO_TOKEN }}" \ | |
| -H "Accept: application/json" | |
| - name: Extract and prepare iOS app for testing | |
| run: | | |
| mkdir -p ./extracted | |
| mkdir -p ./prepared | |
| tar -xzf ./ios-build.tar.gz -C ./extracted | |
| APP_PATH=$(find ./extracted -name "*.app" -type d) | |
| echo "Found app at: $APP_PATH" | |
| CURRENT_DIR=$(pwd) | |
| OUTPUT_ZIP="$CURRENT_DIR/prepared/app-build.zip" | |
| cd $(dirname "$APP_PATH") | |
| APP_NAME=$(basename "$APP_PATH") | |
| echo "Zipping $APP_NAME to $OUTPUT_ZIP" | |
| zip -r "$OUTPUT_ZIP" "$APP_NAME" | |
| echo "Prepared app-build.zip for testing" | |
| - name: Upload to devicecloud.dev | |
| id: upload | |
| uses: devicecloud-dev/device-cloud-for-maestro@v1 | |
| with: | |
| api-key: ${{ secrets.DEVICECLOUD_API_KEY }} | |
| app-file: ./prepared/app-build.zip | |
| ios-version: 16 | |
| retry: 1 |