Fix flaky UI tests (#295)
This commit is contained in:
54
.github/workflows/check.yml
vendored
54
.github/workflows/check.yml
vendored
@@ -44,19 +44,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [30]
|
api-level: [ 30 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Free Disk Space (Ubuntu)
|
||||||
|
uses: jlumbroso/free-disk-space@v1.3.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
android: false
|
||||||
|
large-packages: true
|
||||||
- uses: actions/setup-java@v4
|
tool-cache: true
|
||||||
with:
|
dotnet: true
|
||||||
distribution: temurin
|
haskell: true
|
||||||
java-version: 17
|
docker-images: true
|
||||||
|
swap-storage: true
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v3
|
|
||||||
|
|
||||||
- name: Enable KVM group perms
|
- name: Enable KVM group perms
|
||||||
run: |
|
run: |
|
||||||
@@ -64,34 +63,27 @@ jobs:
|
|||||||
sudo udevadm control --reload-rules
|
sudo udevadm control --reload-rules
|
||||||
sudo udevadm trigger --name-match=kvm
|
sudo udevadm trigger --name-match=kvm
|
||||||
|
|
||||||
- name: AVD cache
|
- uses: actions/checkout@v4
|
||||||
uses: actions/cache@v4
|
name: Checkout the code
|
||||||
id: avd-cache
|
|
||||||
with:
|
with:
|
||||||
path: |
|
fetch-depth: 0
|
||||||
~/.android/avd/*
|
|
||||||
~/.android/adb*
|
|
||||||
key: avd-${{ matrix.api-level }}
|
|
||||||
|
|
||||||
- name: create AVD and generate snapshot for caching
|
- uses: actions/setup-java@v4
|
||||||
if: steps.avd-cache.outputs.cache-hit != 'true'
|
name: Setup JDK 17
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
with:
|
with:
|
||||||
api-level: ${{ matrix.api-level }}
|
distribution: 'zulu'
|
||||||
force-avd-creation: false
|
java-version: 17
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
arch: x86_64
|
- name: Setup Gradle
|
||||||
disable-animations: true
|
uses: gradle/actions/setup-gradle@v3
|
||||||
disk-size: 6000M
|
with:
|
||||||
heap-size: 600M
|
validate-wrappers: true
|
||||||
script: echo "Generated AVD snapshot for caching."
|
gradle-home-cache-cleanup: true
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
with:
|
with:
|
||||||
api-level: ${{ matrix.api-level }}
|
api-level: ${{ matrix.api-level }}
|
||||||
force-avd-creation: false
|
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
disk-size: 6000M
|
disk-size: 6000M
|
||||||
|
|||||||
Reference in New Issue
Block a user