Skip to content

Commit 0a10a6a

Browse files
committed
re-enable
1 parent 493ab6e commit 0a10a6a

File tree

10 files changed

+942
-942
lines changed

10 files changed

+942
-942
lines changed

.github/workflows/abtesting.yml

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ concurrency:
2424
cancel-in-progress: true
2525

2626
jobs:
27-
# spm:
28-
# uses: ./.github/workflows/common.yml
29-
# with:
30-
# target: ABTestingUnit
27+
spm:
28+
uses: ./.github/workflows/common.yml
29+
with:
30+
target: ABTestingUnit
3131

32-
# catalyst:
33-
# uses: ./.github/workflows/common_catalyst.yml
34-
# with:
35-
# product: FirebaseABTesting
36-
# target: FirebaseABTesting-Unit-unit
32+
catalyst:
33+
uses: ./.github/workflows/common_catalyst.yml
34+
with:
35+
product: FirebaseABTesting
36+
target: FirebaseABTesting-Unit-unit
3737

38-
# pod_lib_lint:
39-
# uses: ./.github/workflows/common_cocoapods.yml
40-
# with:
41-
# product: FirebaseABTesting
38+
pod_lib_lint:
39+
uses: ./.github/workflows/common_cocoapods.yml
40+
with:
41+
product: FirebaseABTesting
4242

4343
quickstart:
4444
uses: ./.github/workflows/common_quickstart.yml
@@ -51,59 +51,59 @@ jobs:
5151
secrets:
5252
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
5353

54-
# quickstart-ftl-cron-only:
55-
# # Don't run on private repo.
56-
# if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
54+
quickstart-ftl-cron-only:
55+
# Don't run on private repo.
56+
if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
5757

58-
# env:
59-
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
60-
# runs-on: macos-15
61-
# steps:
62-
# - uses: actions/checkout@v4
63-
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
64-
# - uses: actions/setup-python@v5
65-
# with:
66-
# python-version: '3.11'
67-
# - name: Setup quickstart
68-
# env:
69-
# LEGACY: true
70-
# run: scripts/setup_quickstart.sh abtesting
71-
# - name: Install Secret GoogleService-Info.plist
72-
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
73-
# quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
74-
# - name: Xcode
75-
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
76-
# - name: Build swift quickstart
77-
# env:
78-
# LEGACY: true
79-
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh ABTesting)
80-
# - id: ftl_test
81-
# uses: FirebaseExtended/github-actions/[email protected]
82-
# with:
83-
# credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
84-
# testapp_dir: quickstart-ios/build-for-testing
85-
# test_type: "xctest"
58+
env:
59+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
60+
runs-on: macos-15
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
64+
- uses: actions/setup-python@v5
65+
with:
66+
python-version: '3.11'
67+
- name: Setup quickstart
68+
env:
69+
LEGACY: true
70+
run: scripts/setup_quickstart.sh abtesting
71+
- name: Install Secret GoogleService-Info.plist
72+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
73+
quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
74+
- name: Xcode
75+
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
76+
- name: Build swift quickstart
77+
env:
78+
LEGACY: true
79+
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh ABTesting)
80+
- id: ftl_test
81+
uses: FirebaseExtended/github-actions/[email protected]
82+
with:
83+
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
84+
testapp_dir: quickstart-ios/build-for-testing
85+
test_type: "xctest"
8686

87-
# abtesting-cron-only:
88-
# # Don't run on private repo.
89-
# if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
87+
abtesting-cron-only:
88+
# Don't run on private repo.
89+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
9090

91-
# runs-on: macos-15
92-
# strategy:
93-
# matrix:
94-
# target: [ios, tvos, macos]
95-
# flags: [
96-
# '--use-static-frameworks'
97-
# ]
98-
# needs: pod_lib_lint
99-
# steps:
100-
# - uses: actions/checkout@v4
101-
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
102-
# - name: Setup Bundler
103-
# run: scripts/setup_bundler.sh
104-
# - name: Xcode
105-
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
106-
# - name: PodLibLint ABTesting Cron
107-
# run: |
108-
# scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
109-
# FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
91+
runs-on: macos-15
92+
strategy:
93+
matrix:
94+
target: [ios, tvos, macos]
95+
flags: [
96+
'--use-static-frameworks'
97+
]
98+
needs: pod_lib_lint
99+
steps:
100+
- uses: actions/checkout@v4
101+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
102+
- name: Setup Bundler
103+
run: scripts/setup_bundler.sh
104+
- name: Xcode
105+
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
106+
- name: PodLibLint ABTesting Cron
107+
run: |
108+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
109+
FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/auth.yml

Lines changed: 111 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -28,69 +28,69 @@ concurrency:
2828
cancel-in-progress: true
2929

3030
jobs:
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

Comments
 (0)