-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.96 KB
/
e2e-flutter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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/"