forked from leancodepl/patrol
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (56 loc) · 2.1 KB
/
test-ios-simulator.yaml
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
name: test ios simulator
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
jobs:
main:
name: Test on iOS simulator (${{ matrix.device }}, ${{ matrix.os }} ${{ matrix.os_version }})
runs-on: macos-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
flutter-channel: [stable]
device: [iPhone 14, iPad (9th generation)]
os: [iOS]
os_version: ['16.2']
defaults:
run:
working-directory: packages/patrol/example
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
- name: Preload Flutter artifacts
run: flutter precache
- name: Install Patrol
run: dart pub global activate patrol_cli
- uses: futureware-tech/simulator-action@v2
with:
model: ${{ matrix.device }}
os: ${{ matrix.os }}
os_version: ${{ matrix.os_version }}
erase_before_boot: true
shutdown_after_job: true
- run: patrol test -t integration_test/example_test.dart
if: success() || failure()
- run: patrol test -t integration_test/notifications_test.dart
if: success() || failure()
- run: patrol test -t integration_test/open_app_test.dart
if: success() || failure()
- run: patrol test -t integration_test/open_quick_settings_test.dart
if: success() || failure() # should work, but is empty on Simulator
- run: patrol test -t integration_test/permissions_location_test.dart
if: success() || failure()
- run: patrol test -t integration_test/service_cellular_test.dart
if: ${{ false }} # Not on Simulator
- run: patrol test -t integration_test/service_dark_mode_test.dart
if: success() || failure()
- run: patrol test -t integration_test/service_wifi_test.dart
if: ${{ false }} # Not on Simulator
- run: patrol test -t integration_test/webview_all_test.dart
if: ${{ false }} # Temporarily broken