-
Notifications
You must be signed in to change notification settings - Fork 3
98 lines (88 loc) · 2.62 KB
/
build.yml
File metadata and controls
98 lines (88 loc) · 2.62 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build example app
on:
pull_request:
branches:
- main
- development
- '**_baseline'
jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build example app APK
run: cd splitio/example; flutter build apk
test-android:
name: Test Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run Pub Get
run: cd splitio/; flutter pub get
- name: Build Android
run: cd splitio/example/android/; flutter build apk
- name: Run Android test
run: cd splitio/example/android/; ./gradlew :splitio:testReleaseUnitTest;
build-ios:
name: Build iOS
runs-on: [ macos-14 ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run Build iOS
run: cd splitio/example/ios; flutter build ios --no-codesign;
test-ios:
name: Test iOS
runs-on: [ macos-14 ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run Build iOS
run: cd splitio_ios/example/; flutter build ios --no-codesign;
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.1.0
- name: ios
run: cd splitio_ios/example/ios; xcodebuild test -workspace "Runner.xcworkspace" -scheme "Runner" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.4" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ONLY_ACTIVE_ARCH=NO;
build-web:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build Web
run: cd splitio/example; flutter build web
test-web:
name: Test Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build Web
run: cd splitio/example; flutter build web
- name: Run Web test
run: cd splitio/example; flutter test --platform=chrome