@@ -28,69 +28,69 @@ concurrency:
2828 cancel-in-progress : true
2929
3030jobs :
31- # spm:
32- # uses: ./.github/workflows/common.yml
33- # with:
34- # target: AuthUnit
35- # buildonly_platforms: macOS
31+ spm :
32+ uses : ./.github/workflows/common.yml
33+ with :
34+ target : AuthUnit
35+ buildonly_platforms : macOS
3636
37- # catalyst:
38- # uses: ./.github/workflows/common_catalyst.yml
39- # with:
40- # product: FirebaseAuth
41- # target: FirebaseAuth-Unit-unit
42- # buildonly: true
37+ catalyst :
38+ uses : ./.github/workflows/common_catalyst.yml
39+ with :
40+ product : FirebaseAuth
41+ target : FirebaseAuth-Unit-unit
42+ buildonly : true
4343
44- # pod_lib_lint:
45- # strategy:
46- # matrix:
47- # product: [FirebaseAuthInterop, FirebaseAuth]
48- # uses: ./.github/workflows/common_cocoapods.yml
49- # with:
50- # product: ${{ matrix.product }}
51- # buildonly_platforms: macOS
44+ pod_lib_lint :
45+ strategy :
46+ matrix :
47+ product : [FirebaseAuthInterop, FirebaseAuth]
48+ uses : ./.github/workflows/common_cocoapods.yml
49+ with :
50+ product : ${{ matrix.product }}
51+ buildonly_platforms : macOS
5252
53- # integration-tests:
54- # # Don't run on private repo unless it is a PR.
55- # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
56- # needs: spm
57- # strategy:
58- # matrix:
59- # scheme: [ObjCApiTests, SwiftApiTests, AuthenticationExampleUITests]
60- # env:
61- # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
62- # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
63- # runs-on: macos-15
64- # steps:
65- # - uses: actions/checkout@v4
66- # - uses: actions/cache/restore@v4
67- # with:
68- # path: .build
69- # key: ${{ needs.spm.outputs.cache_key }}
70- # - name: Install Secrets
71- # run: |
72- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
73- # FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AuthCredentials.h "$plist_secret"
74- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg \
75- # FirebaseAuth/Tests/SampleSwift/AuthenticationExample/SwiftApplication.plist "$plist_secret"
76- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
77- # FirebaseAuth/Tests/SampleSwift/AuthCredentials.h "$plist_secret"
78- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
79- # FirebaseAuth/Tests/SampleSwift/GoogleService-Info.plist "$plist_secret"
80- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
81- # FirebaseAuth/Tests/SampleSwift/GoogleService-Info_multi.plist "$plist_secret"
82- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
83- # FirebaseAuth/Tests/SampleSwift/Sample.entitlements "$plist_secret"
84- # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
85- # FirebaseAuth/Tests/SampleSwift/SwiftApiTests/Credentials.swift "$plist_secret"
86- # - name: Xcode
87- # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
88- # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
89- # with:
90- # timeout_minutes: 15
91- # max_attempts: 3
92- # retry_wait_seconds: 120
93- # command: ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
53+ integration-tests :
54+ # Don't run on private repo unless it is a PR.
55+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
56+ needs : spm
57+ strategy :
58+ matrix :
59+ scheme : [ObjCApiTests, SwiftApiTests, AuthenticationExampleUITests]
60+ env :
61+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
62+ FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
63+ runs-on : macos-15
64+ steps :
65+ - uses : actions/checkout@v4
66+ - uses : actions/cache/restore@v4
67+ with :
68+ path : .build
69+ key : ${{ needs.spm.outputs.cache_key }}
70+ - name : Install Secrets
71+ run : |
72+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
73+ FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AuthCredentials.h "$plist_secret"
74+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg \
75+ FirebaseAuth/Tests/SampleSwift/AuthenticationExample/SwiftApplication.plist "$plist_secret"
76+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
77+ FirebaseAuth/Tests/SampleSwift/AuthCredentials.h "$plist_secret"
78+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
79+ FirebaseAuth/Tests/SampleSwift/GoogleService-Info.plist "$plist_secret"
80+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
81+ FirebaseAuth/Tests/SampleSwift/GoogleService-Info_multi.plist "$plist_secret"
82+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
83+ FirebaseAuth/Tests/SampleSwift/Sample.entitlements "$plist_secret"
84+ scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
85+ FirebaseAuth/Tests/SampleSwift/SwiftApiTests/Credentials.swift "$plist_secret"
86+ - name : Xcode
87+ run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
88+ - uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
89+ with :
90+ timeout_minutes : 15
91+ max_attempts : 3
92+ retry_wait_seconds : 120
93+ command : ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
9494
9595 quickstart :
9696 uses : ./.github/workflows/common_quickstart.yml
@@ -104,63 +104,63 @@ jobs:
104104 secrets :
105105 plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
106106
107- # # TODO(@sunmou99): currently have issue with this job, will re-enable it once the issue resolved.
108- # # quickstart-ftl-cron-only:
109- # # # Don't run on private repo.
110- # # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
111-
112- # # env:
113- # # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
114- # # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
115- # # runs-on: macos-14
116- # # steps:
117- # # - uses: actions/checkout@v4
118- # # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
119- # # - uses: actions/setup-python@v5
120- # # with:
121- # # python-version: '3.11'
122- # # - name: Setup quickstart
123- # # run: scripts/setup_quickstart.sh authentication
124- # # - name: Install Secret GoogleService-Info.plist
125- # # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
126- # # quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
127- # # - name: Build swift quickstart
128- # # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Authentication)
129- # # - id: ftl_test
130- # # uses: FirebaseExtended/github-actions/[email protected] 131- # # with:
132- # # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
133- # # testapp_dir: quickstart-ios/build-for-testing
134- # # test_type: "xctest"
135-
136- # auth-cron-only:
107+ # TODO(@sunmou99): currently have issue with this job, will re-enable it once the issue resolved.
108+ # quickstart-ftl-cron-only:
137109 # # Don't run on private repo.
138- # if: github.event_name == 'schedule ' && github.repository == 'Firebase/firebase-ios-sdk '
110+ # if: ( github.repository == 'Firebase/firebase-ios-sdk ' && github.event_name == 'schedule') || github.event_name == 'pull_request '
139111
140- # runs-on: macos-15
141- # strategy:
142- # matrix:
143- # # The macos and tvos tests can hang, and watchOS doesn't have tests.
144- # target: [ios, tvos --skip-tests, macos --skip-tests, watchos --skip-tests]
145- # flags: [
146- # '--use-static-frameworks'
147- # ]
148- # needs: pod_lib_lint
149112 # env:
150113 # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
114+ # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
151115 # runs-on: macos-14
152116 # steps:
153117 # - uses: actions/checkout@v4
154118 # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
155- # - name: Setup Xcode
156- # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
157- # - name: Setup Bundler
158- # run: scripts/setup_bundler.sh
159- # - name: Configure test keychain
160- # run: scripts/configure_test_keychain.sh
161- # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
119+ # - uses: actions/setup-python@v5
162120 # with:
163- # timeout_minutes: 15
164- # max_attempts: 3
165- # retry_wait_seconds: 120
166- # command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
121+ # python-version: '3.11'
122+ # - name: Setup quickstart
123+ # run: scripts/setup_quickstart.sh authentication
124+ # - name: Install Secret GoogleService-Info.plist
125+ # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
126+ # quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
127+ # - name: Build swift quickstart
128+ # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Authentication)
129+ # - id: ftl_test
130+ # uses: FirebaseExtended/github-actions/[email protected] 131+ # with:
132+ # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
133+ # testapp_dir: quickstart-ios/build-for-testing
134+ # test_type: "xctest"
135+
136+ auth-cron-only :
137+ # Don't run on private repo.
138+ if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
139+
140+ runs-on : macos-15
141+ strategy :
142+ matrix :
143+ # The macos and tvos tests can hang, and watchOS doesn't have tests.
144+ target : [ios, tvos --skip-tests, macos --skip-tests, watchos --skip-tests]
145+ flags : [
146+ ' --use-static-frameworks'
147+ ]
148+ needs : pod_lib_lint
149+ env :
150+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
151+ runs-on : macos-14
152+ steps :
153+ - uses : actions/checkout@v4
154+ - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
155+ - name : Setup Xcode
156+ run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
157+ - name : Setup Bundler
158+ run : scripts/setup_bundler.sh
159+ - name : Configure test keychain
160+ run : scripts/configure_test_keychain.sh
161+ - uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
162+ with :
163+ timeout_minutes : 15
164+ max_attempts : 3
165+ retry_wait_seconds : 120
166+ command : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
0 commit comments