Skip to content

Update dependency androidx.core:core-ktx to v1.19.0 #3866

Update dependency androidx.core:core-ktx to v1.19.0

Update dependency androidx.core:core-ktx to v1.19.0 #3866

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]
# Cancel superseded runs for the same PR/branch (saves runner minutes on rapid pushes, e.g.
# Renovate, and gives faster feedback on the latest commit); let master runs finish.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
JAVA_VERSION: 25
ANDROID_API_LEVEL: 36
permissions:
checks: write
pull-requests: write
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v6.0.3
- name: Configure JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v5.3.0
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Cache Robolectric android-all jars
uses: actions/cache@v5.0.5
with:
path: ~/.m2/repository/org/robolectric
key: robolectric-${{ hashFiles('gradle/libs.versions.toml') }}
restore-keys: |
robolectric-
- name: Ktlint, Assemble, Lint, Unit Tests
run: ./gradlew ktlintCheck assembleDebug lintDebug testDebug -s --continue
- name: Publish Unit Test Report
uses: EnricoMi/publish-unit-test-result-action@v2.24.0
if: always()
with:
comment_mode: off
check_name: "Unit Test Results"
action_fail_on_inconclusive: true
files: |
app/build/test-results/**/TEST-*.xml
- name: Upload Reports
if: github.repository == 'jaredsburrows/android-gif-search' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v7.0.1
with:
name: com.burrowsapps.gif.search-reports-${{ github.workflow }}-${{ github.run_id }}
path: |
app/build/reports
app/build/test-results
- name: Upload Debug APK artifact
if: github.repository == 'jaredsburrows/android-gif-search' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v7.0.1
with:
name: com.burrowsapps.gif.search-debug-${{ github.workflow }}-${{ github.run_id }}.apk
path: app/build/outputs/apk/debug/app-debug.apk
instrumentation:
name: Instrumentation Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v6.0.3
- name: Configure JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v5.3.0
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Enable KVM group perms
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: Cache AVD
uses: actions/cache@v5.0.5
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ runner.os }}-api${{ env.ANDROID_API_LEVEL }}-v1
restore-keys: |
avd-${{ runner.os }}-api${{ env.ANDROID_API_LEVEL }}-
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.37.0
with:
api-level: ${{ env.ANDROID_API_LEVEL }}
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Run Debug Instrumentation Tests (Ran up to 2 times)
uses: reactivecircus/android-emulator-runner@v2.37.0
with:
api-level: ${{ env.ANDROID_API_LEVEL }}
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedDebugAndroidTest -s || ./gradlew connectedDebugAndroidTest -s
- name: Publish Integration Test Report
uses: EnricoMi/publish-unit-test-result-action@v2.24.0
if: always()
with:
comment_mode: off
check_name: "Integration Test Results"
action_fail_on_inconclusive: true
files: |
app/build/outputs/androidTest-results/**/TEST-*.xml
- name: Upload Integration Reports
if: github.repository == 'jaredsburrows/android-gif-search' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v7.0.1
with:
name: com.burrowsapps.gif.search-androidTest-reports-${{ github.workflow }}-${{ github.run_id }}
path: |
app/build/outputs/androidTest-results
release:
name: Release Build (R8 smoke test)
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v6.0.3
- name: Configure JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v5.3.0
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build Release APK
run: ./gradlew assembleRelease -s
- name: Upload Release APK artifact
if: github.repository == 'jaredsburrows/android-gif-search' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v7.0.1
with:
name: com.burrowsapps.gif.search-release-${{ github.workflow }}-${{ github.run_id }}.apk
path: app/build/outputs/apk/release/app-release.apk