-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Migrated from Travis to Github Workflows CI (#1572)
- Loading branch information
1 parent
7687408
commit d9fd53c
Showing
6 changed files
with
121 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Workflow for feature branches | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!development' | ||
- '!master' | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checking out repository | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Workflow for master/development branches | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'development' | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checking out repository | ||
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 | ||
path: app/build/outputs/apk/debug/ | ||
|
||
lintCheck: | ||
name: Static Analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checking out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Static Analysis | ||
run: ./gradlew lint | ||
|
||
- name: Upload Static Analysis Report For Mifos-Mobile Module | ||
uses: actions/[email protected] | ||
if: failure() | ||
with: | ||
name: Static Analysis Report | ||
path: app/build/reports/ | ||
|
||
pmd: | ||
name: PMD | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checking out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: PMD Check | ||
run: ./gradlew pmd | ||
|
||
- name: Upload PMD Report | ||
uses: actions/[email protected] | ||
if: failure() | ||
with: | ||
name: PMD Report | ||
path: app/build/reports/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters