forked from leancodepl/patrol
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (53 loc) · 1.87 KB
/
test-ios-device.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
name: test ios device
on:
workflow_dispatch:
schedule:
- cron: '30 21 * * *'
jobs:
main:
name: Test on iOS device on Firebase Test Lab
runs-on: macos-latest
timeout-minutes: 60
defaults:
run:
working-directory: packages/patrol/example
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY_JSON }}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Gradle cache
uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
- name: Preload Flutter artifacts
run: flutter precache
# TODO: Parallelize running on Firebase Test Lab with Flank
- name: Run example_test.dart
run: ./run_ios_testlab integration_test/example_test.dart
if: success() || failure()
- name: Run notifications_single_test.dart
run: ./run_ios_testlab integration_test/notifications_single_test.dart
if: success() || failure()
- name: Run notifications_many_test.dart
run: ./run_ios_testlab integration_test/notifications_many_test.dart
if: success() || failure()
- name: Run open_app_test.dart
run: ./run_ios_testlab integration_test/open_app_test.dart
if: success() || failure()
- name: Run open_quick_settings_test.dart
run: ./run_ios_testlab integration_test/open_quick_settings_test.dart
if: success() || failure()