Create RLX3J189UQ #11
This file contains 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: "[flutter] E2E Test Nativebrik SDK" | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
publish-flutter-ios-e2e-app: | |
runs-on: macos-13 | |
environment: | |
name: Only Main | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "15.0" | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.2 | |
- name: Build iOS | |
working-directory: flutter/nativebrik_bridge/e2e | |
run: flutter build ios --simulator | |
- name: Zip app | |
working-directory: flutter/nativebrik_bridge/e2e | |
run: | | |
cd build/ios/iphonesimulator && zip -r Runner.app.zip ./Runner.app | |
- name: Uploade to magicpod | |
working-directory: flutter/nativebrik_bridge/e2e | |
run: | | |
curl -L -X POST -F "file=@build/ios/iphonesimulator/Runner.app.zip" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik-Flutter/upload-file/" | |
publish-android-e2e-app: | |
runs-on: ubuntu-latest | |
environment: | |
name: Only Main | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup jdk | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.19.2 | |
- name: Build iOS | |
working-directory: flutter/nativebrik_bridge/e2e | |
run: flutter build apk --debug | |
- name: upload e2e app | |
working-directory: flutter/nativebrik_bridge/e2e | |
run: | | |
curl -L -X POST -F "file=@build/app/outputs/flutter-apk/app-debug.apk" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik-Flutter/upload-file/" |