Signup redesign #615
Workflow file for this run
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
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 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
# 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: mobile-wallet | |
path: mifospay/build/outputs/apk/debug/ | |
lintCheck: | |
name: StaticAnalysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Static Analysis[Core] | |
run: ./gradlew core:lint | |
- name: Upload Static Analysis Report For Core Module | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: Static Analysis Report[Core] | |
path: core/build/reports/ | |
- uses: actions/checkout@v2 | |
- name: Static Analysis[Mifospay] | |
run: ./gradlew mifospay:lint | |
- name: Upload Static Analysis Report For MifosPay Module | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: Static Analysis Report[Mifospay] | |
path: mifospay/build/reports/ | |
pmd: | |
name: PMD | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: PMD Check[Core] | |
run: ./gradlew core:pmd | |
- name: Upload PMD Report[Core] | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: PMD Report[Core] | |
path: core/build/reports/ | |
- uses: actions/checkout@v2 | |
- name: PMD Check[MifosPay] | |
run: ./gradlew mifospay:pmd | |
- name: Upload PMD Report[MifosPay] | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: PMD Report[MifosPay] | |
path: mifospay/build/reports/ | |
checkstyle: | |
name: Checkstyle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkstyle[Core] | |
run: ./gradlew core:checkstyle | |
- name: Upload Checkstyle Report[Core] | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: Checkstyle Report[Core] | |
path: core/build/reports/ | |
- uses: actions/checkout@v2 | |
- name: Checkstyle[MifosPay] | |
run: ./gradlew mifospay:checkstyle | |
- name: Upload Checkstyle Report[MifosPay] | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: Checkstyle Report[MifosPay] | |
path: mifospay/build/reports/ |