@@ -2,55 +2,58 @@ name: Mixpanel Flutter SDK CI
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 test-main-code :
1111 runs-on : macos-latest
1212 steps :
13- - uses : actions/checkout@v2
14- - uses : actions/setup-java@v1
15- with :
16- java-version : ' 12.x'
17- - uses : subosito/flutter-action@v1
18- with :
19- flutter-version : ' 3.16.0'
20- - run : flutter pub get
21- - run : flutter test
22- - run : flutter analyze --no-pub --no-current-package lib
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-java@v1
15+ with :
16+ java-version : " 12.x"
17+ - uses : subosito/flutter-action@v1
18+ with :
19+ flutter-version : " 3.16.0"
20+ - run : flutter pub get
21+ - run : flutter test
22+ - run : flutter analyze --no-pub --no-current-package lib
2323
2424 test-android-integration :
2525 runs-on : macos-11
2626 steps :
27- - uses : actions/checkout@v2
28- - uses : actions/setup-java@v1
29- with :
30- java-version : ' 12.x'
31- - uses : subosito/flutter-action@v1
32- with :
33- flutter-version : ' 3.16.0'
34- - name : Test Android integration
35- working-directory : example
36- run : flutter build apk
27+ - uses : actions/checkout@v2
28+ - uses : actions/setup-java@v1
29+ with :
30+ java-version : " 12.x"
31+ - uses : subosito/flutter-action@v1
32+ with :
33+ flutter-version : " 3.16.0"
34+ - name : Test Android integration
35+ working-directory : example
36+ run : flutter build apk
3737
3838 test-ios-integration :
3939 runs-on : macos-latest
4040 steps :
41- - uses : actions/checkout@v2
42- - uses : actions/setup-java@v1
43- with :
44- java-version : ' 12.x'
45- - uses : subosito/flutter-action@v1
46- with :
47- flutter-version : ' 3.16.0'
48- - name : Clean
49- working-directory : example
50- run : flutter clean
51- - name : Prep
52- working-directory : example
53- run : flutter pub get
54- - name : Test iOS integration
55- working-directory : example
56- run : flutter build ios --debug --simulator --no-codesign
41+ - uses : actions/checkout@v2
42+ - uses : actions/setup-java@v1
43+ with :
44+ java-version : " 12.x"
45+ - uses : subosito/flutter-action@v1
46+ with :
47+ flutter-version : " 3.16.0"
48+ - name : Clean
49+ working-directory : example
50+ run : flutter clean
51+ - name : Flutter pub get
52+ working-directory : example
53+ run : flutter pub get
54+ - name : CocoaPods update
55+ working-directory : example/ios
56+ run : pod repo update
57+ - name : Test iOS integration
58+ working-directory : example
59+ run : flutter build ios --debug --simulator --no-codesign
0 commit comments