@@ -44,10 +44,13 @@ jobs:
44
44
run : scripts/configure_test_keychain.sh
45
45
- name : Xcode
46
46
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
47
- - name : Build and test
48
- run : |
49
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \
50
- ${{ matrix.tests }}
47
+ - uses : nick-fields/retry@v3
48
+ with :
49
+ timeout_minutes : 120
50
+ max_attempts : 3
51
+ retry_on : error
52
+ retry_wait_seconds : 120
53
+ command : scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.tests }}
51
54
52
55
integration-tests :
53
56
# Don't run on private repo unless it is a PR.
84
87
FirebaseAuth/Tests/Sample/SwiftApiTests/Credentials.swift "$plist_secret"
85
88
- name : Xcode
86
89
run : sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer
87
- - name : BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
88
- run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Auth iOS)
90
+ - uses : nick-fields/retry@v3
91
+ with :
92
+ timeout_minutes : 120
93
+ max_attempts : 3
94
+ retry_on : error
95
+ retry_wait_seconds : 120
96
+ command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS)
89
97
90
98
spm :
91
99
# Don't run on private repo unless it is a PR.
@@ -111,8 +119,13 @@ jobs:
111
119
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
112
120
- name : Initialize xcodebuild
113
121
run : scripts/setup_spm_tests.sh
114
- - name : Unit Tests
115
- run : scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }}
122
+ - uses : nick-fields/retry@v3
123
+ with :
124
+ timeout_minutes : 120
125
+ max_attempts : 3
126
+ retry_on : error
127
+ retry_wait_seconds : 120
128
+ command : scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }}
116
129
117
130
catalyst :
118
131
# Don't run on private repo unless it is a PR.
@@ -126,9 +139,13 @@ jobs:
126
139
- uses : ruby/setup-ruby@v1
127
140
- name : Setup Bundler
128
141
run : scripts/setup_bundler.sh
129
- - name : Setup project and Build for Catalyst
130
- # Only build the unit tests on Catalyst. Their keychain reliance causes several failures.
131
- run : scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
142
+ - uses : nick-fields/retry@v3
143
+ with :
144
+ timeout_minutes : 120
145
+ max_attempts : 3
146
+ retry_on : error
147
+ retry_wait_seconds : 120
148
+ command : scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
132
149
133
150
quickstart :
134
151
# Don't run on private repo unless it is a PR.
@@ -195,5 +212,10 @@ jobs:
195
212
run : scripts/setup_bundler.sh
196
213
- name : Configure test keychain
197
214
run : scripts/configure_test_keychain.sh
198
- - name : PodLibLint Auth Cron
199
- run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
215
+ - uses : nick-fields/retry@v3
216
+ with :
217
+ timeout_minutes : 120
218
+ max_attempts : 3
219
+ retry_on : error
220
+ retry_wait_seconds : 120
221
+ command : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
0 commit comments