Skip to content

Commit fcda5c0

Browse files
prajwal27Sparsh1212
authored andcommitted
Fix openMF#195 Add CI/CD GitHub Actions and remove other build checks
1 parent a37095f commit fcda5c0

File tree

4 files changed

+112
-25
lines changed

4 files changed

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

.travis.yml

-25
This file was deleted.

renovate.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
]
5+
}

0 commit comments

Comments
 (0)