Merge pull request #2142 from marunjar/fix_custom_icon_adaptive #397
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: App testing | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Java 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Unit tests | |
run: bash ./gradlew testDebugUnitTest --stacktrace | |
- name: Lint code | |
run: bash ./gradlew lint --stacktrace | |
apk: | |
name: Generate APK | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Java 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build debug APK | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Build release APK | |
run: bash ./gradlew assembleRelease --stacktrace | |
- name: Upload debug APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: debug | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload release APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: release | |
path: app/build/outputs/apk/release/app-release-unsigned.apk |