-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (64 loc) · 1.83 KB
/
appium_integration.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
66
67
68
69
70
71
72
73
74
75
76
name: Appium setup
on:
push:
branches:
- main
jobs:
appium_integration:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [ 29 ]
target: [ default ]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.4'
channel: 'stable'
- name: Check flutter version
run: flutter --version
- name: Install flutter dependencies
run: flutter pub get
- name: Set up NodeJS 18
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- name: Enable KVM
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: Install the Emulator
run: |
chmod +x scripts/install-android-sdk.sh
scripts/install-android-sdk.sh
shell: bash
- name: Boot the Emulator
run: |
chmod +x scripts/emulator-up.sh
scripts/emulator-up.sh
shell: bash
- name: Start Appium server
run: |
chmod +x ./scripts/RunAppiumServer.sh
./scripts/RunAppiumServer.sh
- name: Run Appium Tests
uses: reactivecircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: pixel 6a
script: ./gradlew connectedCheck