Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/#195 setup ci using GitHub actions #196

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/feature_branch_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Mifos-Mobile-CN CI[Feature]

on:
push:
branches:
- '*'
- '!master'
- '!redesign'

jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Set up JDK
- name: Set Up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

# 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
74 changes: 74 additions & 0 deletions .github/workflows/master_redesign_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Mifos-Mobile-CN CI[Master/Redesign]

on:
pull_request:
branches:
- 'master'
- 'redesign'

push:
branches:
- 'master'
- 'redesign'

jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Set up JDK
- name: Set Up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

# 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/[email protected]
with:
name: mifos-mobile-cn
path: app/build/outputs/apk/debug/

lintCheck:
name: StaticAnalysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Static Analysis[Mifos-Mobile-CN]
run: ./gradlew app:lint

- name: Upload Static Analysis Report For Mifos-Mobile-CN Module
uses: actions/[email protected]
if: failure()
with:
name: Static Analysis Report[Mifos-Mobile-CN]
path: app/build/reports/

pmd:
name: PMD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PMD Check[Mifos-Mobile-CN]
run: ./gradlew app:pmd

- name: Upload PMD Report[Mifos-Mobile-CN]
uses: actions/[email protected]
if: failure()
with:
name: PMD Report[Mifos-Mobile-CN]
path: app/build/reports/
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}