Skip to content

Bump kotlin from 2.1.10 to 2.2.20 #341

Bump kotlin from 2.1.10 to 2.2.20

Bump kotlin from 2.1.10 to 2.2.20 #341

Workflow file for this run

name: Run unit test and instrumentation test
on:
pull_request:
push:
branches:
- 'develop'
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
pull-requests: write
repository-projects: write
issues: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-java
- name: Run test
run: ./gradlew testDebug --no-daemon --stacktrace
- 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
ls /dev/kvm
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
arch: x86_64
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
arch: x86_64
disable-animations: true
script: ./gradlew connectedCheck --no-daemon --stacktrace
- name: Run kover coverage report
if: always()
run: ./gradlew koverXmlReport --no-daemon --stacktrace
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v5
if: always()
with:
files: ./build/reports/kover/report.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true