Merge pull request #146 from Bl0ck154/refactor/capture-runtime-01589 #600
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install Android 35 platform | |
| run: sdkmanager "platforms;android-35" "build-tools;35.0.0" | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: '8.10.2' | |
| - name: Run unit tests and build debug APK | |
| run: gradle testDebugUnitTest assembleDebug --stacktrace | |
| - name: Upload debug APK | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CourierPilot-debug | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| if-no-files-found: error | |
| retention-days: 14 |