-
Notifications
You must be signed in to change notification settings - Fork 24
63 lines (53 loc) · 1.62 KB
/
integration_tests_android.yml
File metadata and controls
63 lines (53 loc) · 1.62 KB
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
name: Integration Tests (Android)
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
integration_test:
name: Android API ${{ matrix.api-level }} - ${{ matrix.profile }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
api-level: [24, 30, 35]
profile: [medium_phone]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Disable analytics
run: flutter config --no-analytics
- name: Flutter pub get
run: |
flutter pub get
cd example
flutter pub get
- name: Enable emulator hardware acceleration (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: Boot emulator and run integration tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
profile: ${{ matrix.profile }}
arch: x86_64
script: |
cd example && flutter test integration_test