Skip to content

Commit e3e0755

Browse files
authored
Merge pull request #1 from Sparsh1212/ci/openMF#195-setup-ci-using-github-actions
Fix openMF#195 Add CI/CD GitHub Actions and remove other build checks
2 parents 1766684 + a7b0b90 commit e3e0755

File tree

3 files changed

+103
-25
lines changed

3 files changed

+103
-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
+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
uses: actions/[email protected]
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+
uses: actions/[email protected]
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+
uses: actions/[email protected]
67+
if: failure()
68+
with:
69+
name: PMD Report[Mifos-Mobile-CN]
70+
path: app/build/reports/

.travis.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)