Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
37fed4e
refactor: Remove is_legacy QS testing flags
ncooke3 Sep 23, 2025
d0f396d
Update qs repo branch testing
ncooke3 Sep 23, 2025
3b3e44c
Update testing
ncooke3 Sep 23, 2025
b570f39
debug
ncooke3 Sep 23, 2025
bc280ce
better qs name
ncooke3 Sep 23, 2025
e71e65c
Debug
ncooke3 Sep 23, 2025
ef6514a
remove trailing slash
ncooke3 Sep 23, 2025
eab3ab1
workflows
ncooke3 Sep 23, 2025
9e13000
remove debug
ncooke3 Sep 23, 2025
5312f61
crashlytics
ncooke3 Sep 23, 2025
b620b61
common qs update
ncooke3 Sep 23, 2025
1d68365
workflow refactors
ncooke3 Sep 23, 2025
c141e3a
fix setup script
ncooke3 Sep 23, 2025
8b82907
*release workflow updates
ncooke3 Sep 23, 2025
b9a8211
case sensitive products
ncooke3 Sep 23, 2025
601cd1d
disable fail-fast in *release
ncooke3 Sep 23, 2025
3f3c256
debug true
ncooke3 Sep 23, 2025
38bf3f6
workflow name improvements
ncooke3 Sep 23, 2025
d739329
fetch-tags: true
ncooke3 Sep 23, 2025
d620e4e
try checkout config change
ncooke3 Sep 23, 2025
855a520
m
ncooke3 Sep 23, 2025
17e7691
script better error handling
ncooke3 Sep 23, 2025
2878050
backtrack
ncooke3 Sep 23, 2025
2cbbb9d
fixes
ncooke3 Sep 23, 2025
6863092
r
ncooke3 Sep 23, 2025
0335a44
SPM=true
ncooke3 Sep 24, 2025
f6581a5
set DIR
ncooke3 Sep 24, 2025
5c5e3e8
seprate out SPM and CocoaPods workflows
ncooke3 Sep 24, 2025
9ae3f4a
maybe: capitalization
ncooke3 Sep 24, 2025
7b6c2ba
Revert "maybe: capitalization"
ncooke3 Sep 24, 2025
9806577
Reapply "maybe: capitalization"
ncooke3 Sep 24, 2025
5173820
install xcpretty
ncooke3 Sep 24, 2025
a6efbdf
move
ncooke3 Sep 24, 2025
35efc74
storage
ncooke3 Sep 24, 2025
80750eb
prerelease, if changes, todo
ncooke3 Sep 24, 2025
dc506dd
zip testing
ncooke3 Sep 24, 2025
4b41db1
break
ncooke3 Sep 24, 2025
c2dd4d8
revertable: disable upload artifact
ncooke3 Sep 24, 2025
b995331
unbreak
ncooke3 Sep 24, 2025
861e6b1
open
ncooke3 Sep 24, 2025
628d537
oh
ncooke3 Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: ABTesting
is_legacy: true
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh abtesting
setup_command: scripts/setup_quickstart_spm.sh abtesting
plist_src_path: scripts/gha-encrypted/qs-abtesting.plist.gpg
plist_dst_path: quickstart-ios/abtesting/GoogleService-Info.plist
secrets:
Expand All @@ -67,7 +66,6 @@ jobs:
# python-version: '3.11'
# - name: Setup quickstart
# env:
# LEGACY: true
# run: scripts/setup_quickstart.sh abtesting
# - name: Install Secret GoogleService-Info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
Expand All @@ -76,7 +74,6 @@ jobs:
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
# - name: Build swift quickstart
# env:
# LEGACY: true
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh ABTesting)
# - id: ftl_test
# uses: FirebaseExtended/github-actions/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Authentication
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh authentication
setup_command: scripts/setup_quickstart_spm.sh authentication
plist_src_path: scripts/gha-encrypted/qs-authentication.plist.gpg
plist_dst_path: quickstart-ios/authentication/GoogleService-Info.plist
run_tests: false
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/common_quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ on:
type: string
required: true

# Whether to test the legacy version of the quickstart.
is_legacy:
type: boolean
required: true
# The branch to checkout in the quickstart repo.
quickstart_branch:
type: string
required: false
# default: 'main' # TODO: Revert to main before merging.
default: 'nc/quickstarts'

# The path to the encrypted `GoogleService-Info.plist` file.
plist_src_path:
Expand Down Expand Up @@ -60,11 +62,12 @@ on:

jobs:
quickstart:
name: quickstart (${{ inputs.product }})
# Run on the main repo's scheduled jobs or pull requests and manual workflow invocations.
if: (github.repository == 'firebase/firebase-ios-sdk' && github.event_name == 'schedule') || contains(fromJSON('["pull_request", "workflow_dispatch"]'), github.event_name)
env:
plist_secret: ${{ secrets.plist_secret }}
LEGACY: ${{ inputs.is_legacy && true || '' }}
QUICKSTART_BRANCH: ${{ inputs.quickstart_branch }}
runs-on: macos-15
steps:
- uses: actions/checkout@v4
Expand All @@ -81,7 +84,7 @@ jobs:
${{ inputs.plist_src_path }} \
${{ inputs.plist_dst_path }} \
"$plist_secret"
- name: Build ${{ inputs.product }} Quickstart (${{ inputs.is_legacy && 'Legacy' || 'Non-Legacy' }})
- name: Build ${{ inputs.product }} Quickstart
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
timeout_minutes: 15
Expand All @@ -90,7 +93,7 @@ jobs:
command: |
SPM=true DIR=${{ inputs.product }} scripts/test_quickstart.sh \
${{ inputs.product }} \
${{ inputs.run_tests }} \
${{ inputs.run_tests }}
# Failure sequence to upload artifact.
- id: lowercase_product
if: ${{ failure() }}
Expand Down
16 changes: 1 addition & 15 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Crashlytics
is_legacy: true
setup_command: |
scripts/setup_quickstart.sh crashlytics
mkdir quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
# Set the deployed pod location of run and upload-symbols with the development pod version.
cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
setup_command: scripts/setup_quickstart_spm.sh crashlytics
plist_src_path: scripts/gha-encrypted/qs-crashlytics.plist.gpg
plist_dst_path: quickstart-ios/crashlytics/GoogleService-Info.plist
secrets:
Expand All @@ -76,20 +70,12 @@ jobs:
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
# - name: Setup quickstart
# run: scripts/setup_quickstart.sh crashlytics
# env:
# LEGACY: true
# - name: Install Secret GoogleService-Info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
# quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
# - name: Build swift quickstart
# run: |
# mkdir quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
# # Set the deployed pod location of run and upload-symbols with the development pod version.
# cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
# cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
# ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Crashlytics swift)
# env:
# LEGACY: true
# - id: ftl_test
# uses: FirebaseExtended/github-actions/[email protected]
# with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Database
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh database
setup_command: scripts/setup_quickstart_spm.sh database
plist_src_path: scripts/gha-encrypted/qs-database.plist.gpg
plist_dst_path: quickstart-ios/database/GoogleService-Info.plist
run_tests: false
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ jobs:
# uses: ./.github/workflows/common_quickstart.yml
# with:
# product: Firestore
# is_legacy: true
# setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh firestore
# setup_command: scripts/setup_quickstart_spm.sh firestore
# plist_src_path: scripts/gha-encrypted/qs-firestore.plist.gpg
# plist_dst_path: quickstart-ios/firestore/GoogleService-Info.plist
# run_tests: false
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,7 @@ jobs:
with:
target: FirebaseFunctionsUnit

# TODO: The legacy quickstart uses material which doesn't build on Xcode 15.
# quickstart:
# uses: ./.github/workflows/common_quickstart.yml
# strategy:
# matrix:
# quickstart_type: [objc, swift]
# with:
# product: Functions
# is_legacy: true
# setup_command: |
# scripts/setup_quickstart.sh functions
# sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
# plist_src_path: scripts/gha-encrypted/qs-functions.plist.gpg
# plist_dst_path: quickstart-ios/functions/GoogleService-Info.plist
# quickstart_type: ${{ matrix.quickstart_type }}
# secrets:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# TODO(ncooke3): Add a Functions quickstart test.

# quickstart-ftl-cron-only:
# # Don't run on private repo
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/inappmessaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: InAppMessaging
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh inappmessaging
setup_command: scripts/setup_quickstart_spm.sh inappmessaging
plist_src_path: scripts/gha-encrypted/qs-inappmessaging.plist.gpg
plist_dst_path: quickstart-ios/inappmessaging/GoogleService-Info.plist
secrets:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/installations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Installations
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh installations
setup_command: scripts/setup_quickstart_spm.sh installations
plist_src_path: scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg
plist_dst_path: quickstart-ios/installations/GoogleService-Info.plist
secrets:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Messaging
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh messaging
setup_command: scripts/setup_quickstart_spm.sh messaging
plist_src_path: scripts/gha-encrypted/qs-messaging.plist.gpg
plist_dst_path: quickstart-ios/messaging/GoogleService-Info.plist
run_tests: false
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ jobs:
uses: ./.github/workflows/common_quickstart.yml
with:
product: Performance
is_legacy: false
setup_command: QUICKSTART_BRANCH=nc/quickstarts scripts/setup_quickstart_spm.sh performance
setup_command: scripts/setup_quickstart_spm.sh performance
plist_src_path: scripts/gha-encrypted/qs-performance.plist.gpg
plist_dst_path: quickstart-ios/performance/GoogleService-Info.plist
secrets:
Expand Down
Loading
Loading