1313 - ' .github/workflows/common.yml'
1414 - ' .github/workflows/common_cocoapods.yml'
1515 - ' .github/workflows/common_catalyst.yml'
16+ - ' .github/workflows/common_quickstart.yml'
17+ - ' .github/workflows/common_cocoapods_cron.yml'
1618 - ' scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg'
1719 - ' Gemfile*'
1820 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
2022 - cron : ' 0 9 * * *'
2123
2224env :
@@ -86,30 +88,22 @@ jobs:
8688 run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
8789 - uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
8890 with :
89- timeout_minutes : 120
91+ timeout_minutes : 15
9092 max_attempts : 3
91- retry_on : error
9293 retry_wait_seconds : 120
9394 command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
9495
9596 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 :
100106 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)
113107
114108 # TODO(@sunmou99): currently have issue with this job, will re-enable it once the issue resolved.
115109 # quickstart-ftl-cron-only:
@@ -118,7 +112,6 @@ jobs:
118112
119113 # env:
120114 # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
121- # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
122115 # runs-on: macos-14
123116 # steps:
124117 # - uses: actions/checkout@v4
@@ -129,7 +122,7 @@ jobs:
129122 # - name: Setup quickstart
130123 # run: scripts/setup_quickstart.sh authentication
131124 # - 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 \
133126 # quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
134127 # - name: Build swift quickstart
135128 # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Authentication)
@@ -141,29 +134,12 @@ jobs:
141134 # test_type: "xctest"
142135
143136 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