Translated using Weblate (Bulgarian) #555
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@v4 | |
- name: set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- 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@v4 | |
- name: set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- 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@v4 | |
with: | |
name: debug | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload release APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release | |
path: app/build/outputs/apk/release/app-release-unsigned.apk |