@@ -78,50 +78,10 @@ jobs:
78
78
retry_wait_seconds : 120
79
79
command : scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.tests }} --allow-warnings
80
80
81
- integration-tests :
82
- # Don't run on private repo unless it is a PR.
83
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
84
- strategy :
85
- matrix :
86
- scheme : [ObjCApiTests, SwiftApiTests, AuthenticationExampleUITests]
87
-
81
+ spm-package-resolved :
88
82
env :
89
- plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
90
83
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
91
84
runs-on : macos-14
92
- steps :
93
- - uses : actions/checkout@v4
94
- - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
95
- with :
96
- cache_key : integration-tests${{ matrix.os }}
97
- - name : Install Secrets
98
- run : |
99
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
100
- FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AuthCredentials.h "$plist_secret"
101
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg \
102
- FirebaseAuth/Tests/SampleSwift/AuthenticationExample/SwiftApplication.plist "$plist_secret"
103
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
104
- FirebaseAuth/Tests/SampleSwift/AuthCredentials.h "$plist_secret"
105
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
106
- FirebaseAuth/Tests/SampleSwift/GoogleService-Info.plist "$plist_secret"
107
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
108
- FirebaseAuth/Tests/SampleSwift/GoogleService-Info_multi.plist "$plist_secret"
109
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
110
- FirebaseAuth/Tests/SampleSwift/Sample.entitlements "$plist_secret"
111
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
112
- FirebaseAuth/Tests/SampleSwift/SwiftApiTests/Credentials.swift "$plist_secret"
113
- - name : Xcode
114
- run : sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
115
- - uses : nick-fields/retry@v3
116
- with :
117
- timeout_minutes : 120
118
- max_attempts : 3
119
- retry_on : error
120
- retry_wait_seconds : 120
121
- command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
122
-
123
- spm-package-resolved :
124
- runs-on : macos-14
125
85
outputs :
126
86
cache_key : ${{ steps.generate_cache_key.outputs.cache_key }}
127
87
steps :
@@ -169,6 +129,49 @@ jobs:
169
129
retry_wait_seconds : 120
170
130
command : scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }}
171
131
132
+ integration-tests :
133
+ # Don't run on private repo unless it is a PR.
134
+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
135
+ needs : [spm-package-resolved]
136
+ strategy :
137
+ matrix :
138
+ scheme : [ObjCApiTests, SwiftApiTests, AuthenticationExampleUITests]
139
+ env :
140
+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
141
+ FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
142
+ runs-on : macos-14
143
+ steps :
144
+ - uses : actions/checkout@v4
145
+ - uses : actions/cache/restore@v4
146
+ with :
147
+ path : .build
148
+ key : ${{needs.spm-package-resolved.outputs.cache_key}}
149
+ - name : Install Secrets
150
+ run : |
151
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
152
+ FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AuthCredentials.h "$plist_secret"
153
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg \
154
+ FirebaseAuth/Tests/SampleSwift/AuthenticationExample/SwiftApplication.plist "$plist_secret"
155
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
156
+ FirebaseAuth/Tests/SampleSwift/AuthCredentials.h "$plist_secret"
157
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
158
+ FirebaseAuth/Tests/SampleSwift/GoogleService-Info.plist "$plist_secret"
159
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
160
+ FirebaseAuth/Tests/SampleSwift/GoogleService-Info_multi.plist "$plist_secret"
161
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
162
+ FirebaseAuth/Tests/SampleSwift/Sample.entitlements "$plist_secret"
163
+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
164
+ FirebaseAuth/Tests/SampleSwift/SwiftApiTests/Credentials.swift "$plist_secret"
165
+ - name : Xcode
166
+ run : sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
167
+ - uses : nick-fields/retry@v3
168
+ with :
169
+ timeout_minutes : 120
170
+ max_attempts : 3
171
+ retry_on : error
172
+ retry_wait_seconds : 120
173
+ command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
174
+
172
175
catalyst :
173
176
# Don't run on private repo unless it is a PR.
174
177
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
0 commit comments