@@ -23,11 +23,13 @@ concurrency:
23
23
24
24
jobs :
25
25
26
- messaging :
26
+ messaging-integration-tests :
27
27
# Don't run on private repo unless it is a PR.
28
28
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
29
29
env :
30
30
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
31
+ # TODO: Investigate why PubSub integration tests fail with Xcode 15.0.1 on macos-13
32
+ # runs-on: macos-13
31
33
runs-on : macos-12
32
34
steps :
33
35
- uses : actions/checkout@v3
@@ -46,58 +48,60 @@ jobs:
46
48
mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
47
49
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
48
50
FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
49
- - name : BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
51
+ # - name: Xcode
52
+ # run: sudo xcode-select -s /Applications/xcode_15.0.1.app/Contents/Developer
53
+ - name : BuildAndTest
50
54
run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)
51
55
52
-
53
56
pod-lib-lint :
54
57
# Don't run on private repo unless it is a PR.
55
58
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
56
- runs-on : macos-12
57
-
58
59
strategy :
59
60
matrix :
60
61
podspec : [FirebaseMessagingInterop.podspec, FirebaseMessaging.podspec]
61
62
target : [ios, tvos, macos --skip-tests, watchos --skip-tests] # skipping tests on mac because of keychain access
63
+ os : [macos-12, macos-13]
64
+ include :
65
+ - os : macos-12
66
+ xcode : Xcode_14.2
67
+ - os : macos-13
68
+ xcode : Xcode_15.0.1
69
+ runs-on : ${{ matrix.os }}
62
70
steps :
63
71
- uses : actions/checkout@v3
64
72
- uses : ruby/setup-ruby@v1
65
73
- name : Setup Bundler
66
74
run : scripts/setup_bundler.sh
75
+ - name : Xcode
76
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
67
77
- name : Build and test
68
- run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }}
78
+ run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --test-specs=unit -- platforms=${{ matrix.target }}
69
79
70
80
spm :
71
81
# Don't run on private repo unless it is a PR.
72
82
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
73
- runs-on : macos-12
74
- strategy :
75
- matrix :
76
- target : [iOS, watchOS]
77
- steps :
78
- - uses : actions/checkout@v3
79
- - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
80
- with :
81
- cache_key : ${{ matrix.os }}
82
- - name : Initialize xcodebuild
83
- run : scripts/setup_spm_tests.sh
84
- - name : Unit Tests
85
- run : scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }} spm
86
-
87
- spm-cron :
88
- # Don't run on private repo.
89
- if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
90
- runs-on : macos-12
91
83
strategy :
92
84
matrix :
93
- target : [tvOS, macOS, catalyst]
85
+ target : [iOS, watchOS, tvOS, macOS, catalyst, visionOS]
86
+ os : [macos-12, macos-13]
87
+ include :
88
+ - os : macos-12
89
+ xcode : Xcode_14.2
90
+ - os : macos-13
91
+ xcode : Xcode_15.0.1
92
+ exclude :
93
+ - os : macos-12
94
+ target : visionOS
95
+ runs-on : ${{ matrix.os }}
94
96
steps :
95
97
- uses : actions/checkout@v3
96
98
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
97
99
with :
98
100
cache_key : ${{ matrix.os }}
99
101
- name : Initialize xcodebuild
100
102
run : scripts/setup_spm_tests.sh
103
+ - name : Xcode
104
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
101
105
- name : Unit Tests
102
106
run : scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }} spm
103
107
@@ -122,7 +126,14 @@ jobs:
122
126
env :
123
127
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
124
128
signin_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
125
- runs-on : macos-12
129
+ strategy :
130
+ matrix :
131
+ include :
132
+ - os : macos-12
133
+ xcode : Xcode_14.2
134
+ - os : macos-13
135
+ xcode : Xcode_15.0.1
136
+ runs-on : ${{ matrix.os }}
126
137
steps :
127
138
- uses : actions/checkout@v3
128
139
- uses : ruby/setup-ruby@v1
@@ -131,6 +142,8 @@ jobs:
131
142
- name : Install Secret GoogleService-Info.plist
132
143
run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
133
144
quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
145
+ - name : Xcode
146
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
134
147
- name : Test objc quickstart
135
148
run : ([ -z $plist_secret ] ||
136
149
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
@@ -169,28 +182,32 @@ jobs:
169
182
messaging-cron-only :
170
183
# Don't run on private repo.
171
184
if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
172
- runs-on : macos-12
173
185
strategy :
174
186
matrix :
175
187
target : [ios, tvos, macos --skip-tests, watchos --skip-tests]
176
- flags : [
177
- ' --use-modular-headers'
178
- ]
179
- needs : pod-lib-lint
188
+ os : [macos-12, macos-13]
189
+ include :
190
+ - os : macos-12
191
+ xcode : Xcode_14.2
192
+ - os : macos-13
193
+ xcode : Xcode_15.0.1
194
+ runs-on : ${{ matrix.os }}
180
195
steps :
181
196
- uses : actions/checkout@v3
182
197
- uses : ruby/setup-ruby@v1
183
198
- name : Setup Bundler
184
199
run : scripts/setup_bundler.sh
200
+ - name : Xcode
201
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
185
202
- name : PodLibLint Messaging Cron
186
- run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
203
+ run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --test-specs=unit -- platforms=${{ matrix.target }} --use-static-frameworks
187
204
188
205
messaging-sample-build-test :
189
206
# Don't run on private repo unless it is a PR.
190
207
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
191
208
env :
192
209
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
193
- runs-on : macos-12
210
+ runs-on : macos-13
194
211
steps :
195
212
- uses : actions/checkout@v3
196
213
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
@@ -205,6 +222,8 @@ jobs:
205
222
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
206
223
- name : Prereqs
207
224
run : scripts/install_prereqs.sh MessagingSample iOS
225
+ - name : Xcode
226
+ run : sudo xcode-select -s /Applications/Xcode_15.0.1.app/Contents/Developer
208
227
- name : Build
209
228
run : ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)
210
229
@@ -213,7 +232,7 @@ jobs:
213
232
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
214
233
env :
215
234
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
216
- runs-on : macos-12
235
+ runs-on : macos-13
217
236
steps :
218
237
- uses : actions/checkout@v3
219
238
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
@@ -228,6 +247,8 @@ jobs:
228
247
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
229
248
- name : Prereqs
230
249
run : scripts/install_prereqs.sh SwiftUISample iOS
250
+ - name : Xcode
251
+ run : sudo xcode-select -s /Applications/Xcode_15.0.1.app/Contents/Developer
231
252
- name : Build
232
253
run : ([ -z $plist_secret ] || scripts/build.sh SwiftUISample iOS)
233
254
@@ -236,7 +257,7 @@ jobs:
236
257
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
237
258
env :
238
259
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
239
- runs-on : macos-12
260
+ runs-on : macos-13
240
261
steps :
241
262
- uses : actions/checkout@v3
242
263
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
@@ -251,6 +272,8 @@ jobs:
251
272
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
252
273
- name : Prereqs
253
274
run : scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
275
+ - name : Xcode
276
+ run : sudo xcode-select -s /Applications/Xcode_15.0.1.app/Contents/Developer
254
277
- name : Build
255
278
run : ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)
256
279
0 commit comments