-
Notifications
You must be signed in to change notification settings - Fork 435
167 lines (129 loc) · 4.19 KB
/
master_dev_ci.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: Mobile-Wallet CI[Master/Dev]
on:
pull_request:
push:
branches:
- 'dev'
- 'master'
- 'payment_hub'
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Set up JDK
- name: Set Up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
# Install NDK
#- name: Install NDK
# run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
# Update Gradle Permission
- name: Change gradlew Permission
run: chmod +x gradlew
# Build App
- name: Build with Gradle
run: ./gradlew assemble
# Upload Built APK
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2.2.0
with:
name: mobile-wallet
path: mifospay/build/outputs/apk/debug/
lintCheck:
name: StaticAnalysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup JDK 17
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- uses: actions/checkout@v2
- name: Static Analysis[Mifospay]
run: ./gradlew mifospay:lint
- name: Upload Static Analysis Report For MifosPay Module
uses: actions/upload-artifact@v2.2.0
if: failure()
with:
name: Static Analysis Report[Mifospay]
path: mifospay/build/reports/
- name: Static Analysis[Core:Datastore]
run: ./gradlew core:datastore:lint
- name: Static Analysis[Core:Data]
run: ./gradlew core:data:lint
- name: Static Analysis[Core:DesignSystem]
run: ./gradlew core:designsystem:lint
- name: Static Analysis[Core:Common]
run: ./gradlew core:common:lint
- name: Static Analysis[Feature:Auth]
run: ./gradlew feature:auth:lint
pmd:
name: PMD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup JDK 17
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- uses: actions/checkout@v4
- name: PMD Check[MifosPay]
run: ./gradlew mifospay:pmd
- name: Upload PMD Report[MifosPay]
uses: actions/upload-artifact@v3.1.3
if: failure()
with:
name: PMD Report[MifosPay]
path: mifospay/build/reports/
- name: Static Analysis[Core:Datastore]
run: ./gradlew core:datastore:pmd
- name: Static Analysis[Core:Data]
run: ./gradlew core:data:pmd
- name: Static Analysis[Core:DesignSystem]
run: ./gradlew core:designsystem:pmd
- name: Static Analysis[Core:Common]
run: ./gradlew core:common:pmd
- name: Static Analysis[Core:Network]
run: ./gradlew core:network:pmd
- name: Static Analysis[Core:Model]
run: ./gradlew core:model:pmd
- name: Static Analysis[Feature:Auth]
run: ./gradlew feature:auth:pmd
checkstyle:
name: Checkstyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup JDK 17
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- uses: actions/checkout@v2
- name: Checkstyle[MifosPay]
run: ./gradlew mifospay:checkstyle
- name: Upload Checkstyle Report[MifosPay]
uses: actions/upload-artifact@v2.2.0
if: failure()
with:
name: Checkstyle Report[MifosPay]
path: mifospay/build/reports/
- name: Static Analysis[Core:Datastore]
run: ./gradlew core:datastore:checkstyle
- name: Static Analysis[Core:Data]
run: ./gradlew core:data:checkstyle
- name: Static Analysis[Core:DesignSystem]
run: ./gradlew core:designsystem:checkstyle
- name: Static Analysis[Core:Common]
run: ./gradlew core:common:checkstyle
- name: Static Analysis[Core:Network]
run: ./gradlew core:network:checkstyle
- name: Static Analysis[Core:Model]
run: ./gradlew core:model:checkstyle
- name: Static Analysis[Feature:Auth]
run: ./gradlew feature:auth:checkstyle