Skip to content

Update ktorfit to v2.2.0 #1241

Update ktorfit to v2.2.0

Update ktorfit to v2.2.0 #1241

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
FACTCHECK_API_KEY: ${{secrets.FACTCHECK_API_KEY}}
FACTCHECK_KEYSTORE_FILE: test
FACTCHECK_KEY_ALIAS: test
FACTCHECK_KEYSTORE_PASSWORD: test
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
validate-wrappers: true
- name: Check
run: ./gradlew check
ui-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- 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: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
validate-wrappers: true
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-34
- name: Run tests
uses: reactivecircus/[email protected]
with:
script: ./gradlew connectedDebugAndroidTest
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 -no-metrics
disable-animations: true
api-level: 34