build(deps): bump the android-toolchain group across 1 directory with 3 updates #13
Workflow file for this run
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: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| dependency-review: | |
| name: Dependency review | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Review dependency changes | |
| uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 | |
| with: | |
| fail-on-severity: high | |
| license-check: true | |
| quality: | |
| name: Quality and debug APK | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Validate wrapper and set up Gradle | |
| uses: gradle/actions/setup-gradle@4733eaac7c1b0da527e4206b7671e0061de1ce37 # v6 | |
| with: | |
| validate-wrappers: true | |
| cache-read-only: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork }} | |
| - name: Run quality gates and assemble debug APK | |
| run: ./gradlew qualityCheck assembleDebug --no-daemon --stacktrace | |
| - name: Upload quality reports | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: quality-reports-${{ github.run_attempt }} | |
| if-no-files-found: warn | |
| retention-days: 14 | |
| path: | | |
| app/build/reports/ | |
| app/build/test-results/ | |
| app/build/outputs/unit_test_code_coverage/ | |
| - name: Upload debug APK | |
| if: success() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: medtrack-debug-${{ github.sha }} | |
| if-no-files-found: error | |
| retention-days: 7 | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| instrumented: | |
| name: Instrumented tests (API 35) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 50 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Validate wrapper and set up Gradle | |
| uses: gradle/actions/setup-gradle@4733eaac7c1b0da527e4206b7671e0061de1ce37 # v6 | |
| with: | |
| validate-wrappers: true | |
| cache-read-only: true | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \ | |
| | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Run instrumented suite | |
| uses: ReactiveCircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2 | |
| with: | |
| api-level: 35 | |
| target: google_apis | |
| arch: x86_64 | |
| profile: pixel_6 | |
| disable-animations: true | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| script: ./gradlew connectedDebugAndroidTest --no-daemon --stacktrace | |
| - name: Upload instrumented test reports | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: instrumented-reports-api-35-${{ github.run_attempt }} | |
| if-no-files-found: warn | |
| retention-days: 14 | |
| path: | | |
| app/build/outputs/androidTest-results/ | |
| app/build/reports/androidTests/ |