-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (32 loc) · 1.02 KB
/
ui_tests.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
name: Flutter UI Tests
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
integration_test:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.5'
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Install Patrol CLI
run: flutter pub global activate patrol_cli
- name: Start Android Emulator & Run Patrol
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 33
arch: x86_64
profile: Nexus 6
script: |
patrol test \
-t integration_test/patrol_test.dart \
--dart-define=APP_LOGIN_USER=${{ secrets.APP_LOGIN_USER }} \
--dart-define=APP_LOGIN_PASSWORD=${{ secrets.APP_LOGIN_PASSWORD }} \
--dart-define=APP_LOGIN_NUMBER=${{ secrets.APP_LOGIN_NUMBER }}