File tree 3 files changed +103
-25
lines changed
3 files changed +103
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : Mifos-Mobile-CN CI[Feature]
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ - ' !master'
8
+ - ' !redesign'
9
+
10
+ jobs :
11
+ build :
12
+ name : Build APK
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ # Set up JDK
18
+ - name : Set Up JDK 1.8
19
+ uses : actions/setup-java@v1
20
+ with :
21
+ java-version : 1.8
22
+
23
+ # Install NDK
24
+ - name : Install NDK
25
+ run : echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
26
+
27
+ # Update Gradle Permission
28
+ - name : Change gradlew Permission
29
+ run : chmod +x gradlew
30
+
31
+ # Build App
32
+ - name : Build with Gradle
33
+ run : ./gradlew assemble
Original file line number Diff line number Diff line change
1
+ name : Mifos-Mobile-CN CI[Master/Redesign]
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - ' master'
8
+ - ' redesign'
9
+
10
+ jobs :
11
+ build :
12
+ name : Build APK
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ # Set up JDK
18
+ - name : Set Up JDK 1.8
19
+ uses : actions/setup-java@v1
20
+ with :
21
+ java-version : 1.8
22
+
23
+ # Install NDK
24
+ - name : Install NDK
25
+ run : echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
26
+
27
+ # Update Gradle Permission
28
+ - name : Change gradlew Permission
29
+ run : chmod +x gradlew
30
+
31
+ # Build App
32
+ - name : Build with Gradle
33
+ run : ./gradlew assemble
34
+
35
+ # Upload Built APK
36
+ - name : Upload Build Artifacts
37
+
38
+ with :
39
+ name : mifos-mobile-cn
40
+ path : app/build/outputs/apk/debug/
41
+
42
+ lintCheck :
43
+ name : StaticAnalysis
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - name : Static Analysis[Mifos-Mobile-CN]
48
+ run : ./gradlew app:lint
49
+
50
+ - name : Upload Static Analysis Report For Mifos-Mobile-CN Module
51
+
52
+ if : failure()
53
+ with :
54
+ name : Static Analysis Report[Mifos-Mobile-CN]
55
+ path : app/build/reports/
56
+
57
+ pmd :
58
+ name : PMD
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v2
62
+ - name : PMD Check[Mifos-Mobile-CN]
63
+ run : ./gradlew app:pmd
64
+
65
+ - name : Upload PMD Report[Mifos-Mobile-CN]
66
+
67
+ if : failure()
68
+ with :
69
+ name : PMD Report[Mifos-Mobile-CN]
70
+ path : app/build/reports/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments