This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 716
65 lines (56 loc) · 1.97 KB
/
integration_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Integration tests (androidTest)
on:
push:
branches:
- main
pull_request:
jobs:
integration_test:
runs-on: ubuntu-latest
steps:
- name: Checkout GIT
uses: actions/checkout@v4
- name: Setup Java SDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '18'
- name: Gradle cache
uses: gradle/actions/setup-gradle@v4
- name: Enable KVM (emulator optimization)
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: 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/[email protected]
with:
api-level: 34
target: google_apis
arch: x86_64
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: Build Ivy Wallet's code
run: |
./gradlew :shared:data:core:assembleDebug :shared:data:core:assembleAndroidTest
./gradlew :shared:domain:assembleDebug :shared:domain:assembleAndroidTest
- name: Run androidTest on emulator
uses: reactivecircus/[email protected]
with:
api-level: 34
target: google_apis
arch: x86_64
script: |
./gradlew :shared:data:core:connectedDebugAndroidTest
./gradlew :shared:domain:connectedDebugAndroidTest