-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.57 KB
/
e2e-android.yml
File metadata and controls
62 lines (51 loc) · 1.57 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
# Patrol E2E on Android — manual only (does not block PRs).
# Requires a reachable API if the auth flow calls the network; see integration_test/app_e2e_test.dart.
name: E2E Android (Patrol)
on:
workflow_dispatch:
inputs:
api_level:
description: 'Android API level'
required: true
default: '34'
emulator_profile:
description: 'AVD profile name'
required: true
default: 'pixel_6'
concurrency:
group: e2e-android-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
patrol:
name: Patrol on Android emulator
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 'stable'
channel: 'stable'
cache: true
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Install dependencies
run: flutter pub get
- name: Add Pub global bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Install Patrol CLI
run: dart pub global activate patrol_cli
- name: Run Patrol tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ inputs.api_level }}
arch: x86_64
profile: ${{ inputs.emulator_profile }}
script: patrol test --target integration_test/app_e2e_test.dart