-
-
Notifications
You must be signed in to change notification settings - Fork 17
77 lines (66 loc) · 2.01 KB
/
ci.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
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
75
76
name: CI
on:
push:
jobs:
set-up:
runs-on: ubuntu-latest
steps:
- name: Cancel
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
ios:
needs: set-up
timeout-minutes: 60
strategy:
fail-fast: true
runs-on: macos-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Setup Flutter SDK
timeout-minutes: 8
uses: subosito/flutter-action@v2
with:
channel: beta
- uses: futureware-tech/simulator-action@v2
with:
model: iPhone 14 Pro Max
- name: Cache applesimutils
uses: actions/cache@v3
with:
path: |
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew
/usr/local/Cellar/applesimutils
key: ${{ runner.os }}-brew-applesimutils
- name: Grant permission
run: |
brew tap wix/brew
brew install applesimutils
cd example
applesimutils --booted --bundle studio.midoridesign.galExample --setPermissions photos=YES
- name: Run integration tests
id: Run-integration-tests
continue-on-error: true
timeout-minutes: 10
run: |
cd example
flutter test integration_test/integration_test.dart
- name: Retry integration tests
id: Retry-integration-tests
continue-on-error: true
timeout-minutes: 10
if: steps.Run-integration-tests.outcome == 'failure'
run: |
flutter clean && flutter pub get
cd example
flutter clean && flutter pub get
flutter test integration_test/integration_test.dart
- name: Re:Retry integration tests
timeout-minutes: 10
if: steps.Retry-integration-tests.outcome == 'failure'
run: |
flutter clean && flutter pub get
cd example
flutter clean && flutter pub get
flutter test integration_test/integration_test.dart