13
13
- ' .github/workflows/common.yml'
14
14
- ' .github/workflows/common_cocoapods.yml'
15
15
- ' .github/workflows/common_catalyst.yml'
16
+ - ' .github/workflows/common_quickstart.yml'
17
+ - ' .github/workflows/common_cocoapods_cron.yml'
16
18
- ' scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg'
17
19
- ' Gemfile*'
18
20
schedule :
19
- # Run every day at 1am (PST ) - cron uses UTC times
21
+ # Run every day at 2am (PDT) / 5am (EDT ) - cron uses UTC times
20
22
- cron : ' 0 9 * * *'
21
23
22
24
env :
@@ -86,30 +88,22 @@ jobs:
86
88
run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
87
89
- uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
88
90
with :
89
- timeout_minutes : 120
91
+ timeout_minutes : 15
90
92
max_attempts : 3
91
- retry_on : error
92
93
retry_wait_seconds : 120
93
94
command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
94
95
95
96
quickstart :
96
- # Don't run on private repo unless it is a PR.
97
- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
98
-
99
- env :
97
+ uses : ./.github/workflows/common_quickstart.yml
98
+ with :
99
+ product : Authentication
100
+ is_legacy : false
101
+ setup_command : scripts/setup_quickstart.sh authentication
102
+ plist_src_path : scripts/gha-encrypted/qs-authentication.plist.gpg
103
+ plist_dst_path : quickstart-ios/authentication/GoogleService-Info.plist
104
+ run_tests : false
105
+ secrets :
100
106
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
101
- signin_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
102
- runs-on : macos-15
103
- steps :
104
- - uses : actions/checkout@v4
105
- - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
106
- - name : Setup quickstart
107
- run : scripts/setup_quickstart.sh authentication
108
- - name : Install Secret GoogleService-Info.plist
109
- run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
110
- quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
111
- - name : Test swift quickstart
112
- run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
113
107
114
108
# TODO(@sunmou99): currently have issue with this job, will re-enable it once the issue resolved.
115
109
# quickstart-ftl-cron-only:
@@ -118,7 +112,6 @@ jobs:
118
112
119
113
# env:
120
114
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
121
- # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
122
115
# runs-on: macos-14
123
116
# steps:
124
117
# - uses: actions/checkout@v4
@@ -129,7 +122,7 @@ jobs:
129
122
# - name: Setup quickstart
130
123
# run: scripts/setup_quickstart.sh authentication
131
124
# - name: Install Secret GoogleService-Info.plist
132
- # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth .plist.gpg \
125
+ # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-authentication .plist.gpg \
133
126
# quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
134
127
# - name: Build swift quickstart
135
128
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Authentication)
@@ -141,29 +134,12 @@ jobs:
141
134
# test_type: "xctest"
142
135
143
136
auth-cron-only :
144
- # Don't run on private repo.
145
- if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
146
-
147
- runs-on : macos-15
148
- strategy :
149
- matrix :
150
- # The macos and tvos tests can hang, and watchOS doesn't have tests.
151
- target : [ios, tvos --skip-tests, macos --skip-tests, watchos --skip-tests]
152
- flags : [
153
- ' --use-static-frameworks'
154
- ]
155
- needs : pod_lib_lint
156
- steps :
157
- - uses : actions/checkout@v4
158
- - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
159
- - name : Setup Bundler
160
- run : scripts/setup_bundler.sh
161
- - name : Configure test keychain
162
- run : scripts/configure_test_keychain.sh
163
- - uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
164
- with :
165
- timeout_minutes : 120
166
- max_attempts : 3
167
- retry_on : error
168
- retry_wait_seconds : 120
169
- command : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
137
+ needs : pod_lib_lint
138
+ uses : ./.github/workflows/common_cocoapods_cron.yml
139
+ with :
140
+ product : FirebaseAuth
141
+ platforms : ' [ "ios", "tvos --skip-tests", "macos --skip-tests", "watchos --skip-tests" ]'
142
+ flags : ' [ "--use-static-frameworks" ]'
143
+ setup_command : scripts/configure_test_keychain.sh
144
+ secrets :
145
+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
0 commit comments