@@ -41,10 +41,13 @@ jobs:
41
41
run : scripts/setup_bundler.sh
42
42
- name : Xcode
43
43
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
44
- - name : Build and test
45
- run : |
46
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSessions.podspec \
47
- --platforms=${{ matrix.target }} ${{ matrix.tests }}
44
+ - uses : nick-fields/retry@v3
45
+ with :
46
+ timeout_minutes : 120
47
+ max_attempts : 3
48
+ retry_on : error
49
+ retry_wait_seconds : 120
50
+ command : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSessions.podspec --platforms=${{ matrix.target }} ${{ matrix.tests }}
48
51
49
52
spm :
50
53
# Don't run on private repo unless it is a PR.
71
74
run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
72
75
- name : Initialize xcodebuild
73
76
run : scripts/setup_spm_tests.sh
74
- - name : Unit Tests
75
- run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseSessionsUnit ${{ matrix.target }} spm
77
+ - uses : nick-fields/retry@v3
78
+ with :
79
+ timeout_minutes : 120
80
+ max_attempts : 3
81
+ retry_on : error
82
+ retry_wait_seconds : 120
83
+ command : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseSessionsUnit ${{ matrix.target }} spm
76
84
77
85
catalyst :
78
86
# Don't run on private repo unless it is a PR.
87
95
- uses : ruby/setup-ruby@v1
88
96
- name : Setup Bundler
89
97
run : scripts/setup_bundler.sh
90
- - name : Setup project and Build for Catalyst
91
- run : scripts/test_catalyst.sh FirebaseSessions test FirebaseSessions-Unit-unit
98
+ - uses : nick-fields/retry@v3
99
+ with :
100
+ timeout_minutes : 120
101
+ max_attempts : 3
102
+ retry_on : error
103
+ retry_wait_seconds : 120
104
+ command : scripts/test_catalyst.sh FirebaseSessions test FirebaseSessions-Unit-unit
0 commit comments