File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Build & Release"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ build :
11+ name : Build & Release
12+ runs-on : macos-latest
13+
14+ steps :
15+ - name : Checkout Repository
16+ uses : actions/checkout@v3
17+
18+ - name : Set Up Java
19+ 20+ with :
21+ distribution : ' oracle'
22+ java-version : ' 19.0.2'
23+
24+ - name : Set Up Flutter
25+ uses : subosito/flutter-action@v2
26+ with :
27+ flutter-version : ' 3.16.3'
28+ channel : ' stable'
29+
30+ - name : Set up debug keystore
31+ run : |
32+ rm -f ~/.android/debug.keystore
33+ keytool -genkeypair \
34+ -alias androiddebugkey \
35+ -keypass android \
36+ -keystore ~/.android/debug.keystore \
37+ -storepass android \
38+ -dname 'CN=Android Debug,O=Android,C=US' \
39+ -keyalg 'RSA' \
40+ -keysize 2048 \
41+ -validity 10000
42+
43+ - name : Quality checks monorepo
44+ run : |
45+ ./bin/quality_checks.sh
46+
47+ - name : Android native tests
48+ run : |
49+ #!/bin/bash -ex
50+ cd example/android && ls && ./gradlew detekt && ./gradlew testDebugUnitTest
51+
52+ - name : Build android app
53+ run : |
54+ cd example && flutter build apk --debug
55+
56+ - name : Build iOS app
57+ run : |
58+ find . -name "Podfile" -execdir pod install \;
59+ cd example && flutter build ios --debug --no-codesign
60+
61+ - name : Upload Artifacts
62+ uses : actions/upload-artifact@v2
63+ with :
64+ name : Releases
65+ path : |
66+ example/build/**/outputs/**/*.apk
67+ example/build/**/outputs/**/mapping.txt
68+ eexample/build/ios/ipa/*.ipa
You can’t perform that action at this time.
0 commit comments