Skip to content

chore(deps): update dependency androidx.compose:compose-bom to v2024.… #802

chore(deps): update dependency androidx.compose:compose-bom to v2024.…

chore(deps): update dependency androidx.compose:compose-bom to v2024.… #802

Workflow file for this run

name: Android CI
env:
cache-name: android-gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
setup:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Cache build artifacts
uses: ./.github/actions/cache-build-paths
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble with Gradle
run: ./gradlew jar --no-daemon
unit-tests:
needs: setup
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Cache build artifacts
uses: ./.github/actions/cache-build-paths
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run unit tests
run: ./gradlew test --no-daemon
connected-tests:
needs: setup
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
cache: 'gradle'
- name: Cache build artifacts
uses: ./.github/actions/cache-build-paths
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Save logcat output
run: adb logcat > logcat.txt &
- name: Run connected tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
api-level: 28
target: google_apis
arch: x86_64
profile: Nexus 6
ram-size: 2048MB
force-avd-creation: false
emulator-options: -no-snapshot -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: |
chmod +x .github/workflows/script/run_tests.sh
.github/workflows/script/run_tests.sh
- name: Upload failed tests screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots
path: Screenshots
- name: Upload logcat output
if: always()
uses: actions/upload-artifact@v4
with:
name: logcat
path: logcat.txt