chore(release): merge pre-release hardening into main #9
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: Android CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| concurrency: | |
| group: android-ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| cache: gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Lint, test and assemble | |
| run: ./gradlew --stacktrace lintDebug testDebugUnitTest :app:assembleDebug :app:assembleRelease | |
| - name: Upload APK artifacts | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-apks | |
| path: | | |
| app/build/outputs/apk/debug/*.apk | |
| app/build/outputs/apk/release/*.apk | |
| if-no-files-found: ignore | |
| - name: Upload reports (always) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: android-reports | |
| path: | | |
| app/build/reports/** | |
| app/build/test-results/** | |
| if-no-files-found: ignore |