10
10
- master
11
11
paths-ignore :
12
12
- " docs/**"
13
+ - " **/*.md"
13
14
14
15
env :
15
16
FLUTTERFIRE_PLUGIN_SCOPE : " *firebase_storage*"
@@ -21,15 +22,33 @@ jobs:
21
22
runs-on : macos-latest
22
23
timeout-minutes : 30
23
24
steps :
24
- - uses : actions/checkout@v1
25
+
26
+ with :
27
+ access_token : ${{ github.token }}
28
+ - uses : actions/checkout@v2
25
29
with :
26
30
fetch-depth : 0
27
31
- name : " Install Flutter"
28
- run : ./.github/workflows/scripts/install-flutter.sh dev
32
+ uses : nick-invision/retry@v2
33
+ with :
34
+ timeout_minutes : 10
35
+ retry_wait_seconds : 60
36
+ max_attempts : 3
37
+ command : ./.github/workflows/scripts/install-flutter.sh dev
29
38
- name : " Install Tools"
30
- run : ./.github/workflows/scripts/install-tools.sh
39
+ uses : nick-invision/retry@v2
40
+ with :
41
+ timeout_minutes : 10
42
+ retry_wait_seconds : 60
43
+ max_attempts : 3
44
+ command : ./.github/workflows/scripts/install-tools.sh
31
45
- name : " Build Example"
32
- run : ./.github/workflows/scripts/build-example.sh android
46
+ uses : nick-invision/retry@v2
47
+ with :
48
+ timeout_minutes : 10
49
+ retry_wait_seconds : 60
50
+ max_attempts : 3
51
+ command : ./.github/workflows/scripts/build-example.sh android
33
52
- name : " Drive Example"
34
53
uses : reactivecircus/android-emulator-runner@v2
35
54
with :
@@ -40,41 +59,92 @@ jobs:
40
59
target : default
41
60
profile : Nexus 5X
42
61
script : ./.github/workflows/scripts/drive-example.sh android
62
+ - name : Compress Emulator Log
63
+ if : always()
64
+ run : gzip -9 adb-log.txt
65
+ shell : bash
66
+ - name : Upload Emulator Log
67
+ uses : actions/upload-artifact@v2
68
+ if : always()
69
+ with :
70
+ name : adb_logs
71
+ path : adb-log.txt.gz
43
72
44
73
apple :
45
74
runs-on : macos-latest
46
75
timeout-minutes : 35
47
76
steps :
48
- - uses : actions/checkout@v1
77
+
78
+ with :
79
+ access_token : ${{ github.token }}
80
+ - uses : actions/checkout@v2
49
81
with :
50
82
fetch-depth : 0
51
83
- name : " Install Flutter"
52
- run : ./.github/workflows/scripts/install-flutter.sh dev
84
+ uses : nick-invision/retry@v2
85
+ with :
86
+ timeout_minutes : 10
87
+ retry_wait_seconds : 60
88
+ max_attempts : 3
89
+ command : ./.github/workflows/scripts/install-flutter.sh dev
53
90
- name : " Install Tools"
54
- run : |
55
- ./.github/workflows/scripts/install-tools.sh
56
- flutter config --enable-macos-desktop
91
+ uses : nick-invision/retry@v2
92
+ with :
93
+ timeout_minutes : 10
94
+ retry_wait_seconds : 60
95
+ max_attempts : 3
96
+ command : ./.github/workflows/scripts/install-tools.sh && flutter config --enable-macos-desktop
57
97
- name : " Build iOS Example"
58
- run : ./.github/workflows/scripts/build-example.sh ios
98
+ uses : nick-invision/retry@v2
99
+ with :
100
+ timeout_minutes : 10
101
+ retry_wait_seconds : 60
102
+ max_attempts : 3
103
+ command : ./.github/workflows/scripts/build-example.sh ios
59
104
- name : " Drive iOS Example"
60
105
run : ./.github/workflows/scripts/drive-example.sh ios
106
+ - name : Compress Simulator Log
107
+ if : always()
108
+ run : gzip -9 simulator.log
109
+ - name : Upload Simulator Log
110
+ uses : actions/upload-artifact@v2
111
+ if : always()
112
+ with :
113
+ name : simulator_logs
114
+ path : simulator.log.gz
61
115
- name : " Build MacOS Example"
62
- run : ./.github/workflows/scripts/build-example.sh macos
116
+ uses : nick-invision/retry@v2
117
+ with :
118
+ timeout_minutes : 10
119
+ retry_wait_seconds : 60
120
+ max_attempts : 3
121
+ command : ./.github/workflows/scripts/build-example.sh macos
63
122
- name : " Drive MacOS Example"
64
123
run : ./.github/workflows/scripts/drive-example.sh macos
65
124
66
125
web :
67
126
runs-on : ubuntu-latest
68
127
timeout-minutes : 15
69
128
steps :
70
- - uses : actions/checkout@v1
129
+
130
+ with :
131
+ access_token : ${{ github.token }}
132
+ - uses : actions/checkout@v2
71
133
with :
72
134
fetch-depth : 0
73
135
- name : " Install Flutter"
74
- run : ./.github/workflows/scripts/install-flutter.sh beta
136
+ uses : nick-invision/retry@v2
137
+ with :
138
+ timeout_minutes : 10
139
+ retry_wait_seconds : 60
140
+ max_attempts : 3
141
+ command : ./.github/workflows/scripts/install-flutter.sh beta
75
142
- name : " Install Tools"
76
- run : |
77
- ./.github/workflows/scripts/install-tools.sh
78
- flutter config --enable-web
143
+ uses : nick-invision/retry@v2
144
+ with :
145
+ timeout_minutes : 10
146
+ retry_wait_seconds : 60
147
+ max_attempts : 3
148
+ command : ./.github/workflows/scripts/install-tools.sh && flutter config --enable-web
79
149
- name : " Drive Example"
80
150
run : ./.github/workflows/scripts/drive-example.sh web
0 commit comments