Translated using Weblate (Swedish) #900
This file contains hidden or 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: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref || github.sha }} | |
| cancel-in-progress: ${{ !contains(github.ref, 'master') }} | |
| jobs: | |
| test: | |
| name: Run Unit Tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Lint code | |
| run: bash ./gradlew lint --stacktrace | |
| - name: Unit tests | |
| run: bash ./gradlew testDebugUnitTest --stacktrace | |
| apk: | |
| name: Generate APK | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Build APKs | |
| run: bash ./gradlew assembleDebug assembleRelease --stacktrace | |
| - name: Upload debug APK | |
| if: ${{ github.event_name != 'pull_request' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: debug | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| archive: false | |
| - name: Upload release APK | |
| if: ${{ github.event_name != 'pull_request' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: release | |
| path: app/build/outputs/apk/release/app-release-unsigned.apk | |
| archive: false |