Skip to content

Commit 44ed1d9

Browse files
authored
Merge branch 'main' into nc/cron-fixes
2 parents 5b28328 + 8f8f2c0 commit 44ed1d9

File tree

79 files changed

+916
-593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+916
-593
lines changed

.github/workflows/common.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ on:
5252
required: false
5353
default: ""
5454

55+
# Whether the job is scheduled. Defaults to false.
56+
is_nightly:
57+
type: boolean
58+
required: false
59+
default: false
60+
5561
outputs:
5662
cache_key:
5763
description: "The cache key for the Swift package resolution."
@@ -86,6 +92,8 @@ jobs:
8692
# Run on the main repo's scheduled jobs or pull requests and manual workflow invocations.
8793
if: (github.repository == 'firebase/firebase-ios-sdk' && github.event_name == 'schedule') || contains(fromJSON('["pull_request", "workflow_dispatch"]'), github.event_name)
8894
needs: [spm-package-resolved]
95+
env:
96+
FIREBASE_IS_NIGHTLY_TESTING: ${{ inputs.is_nightly && '1' || '' }}
8997
strategy:
9098
matrix:
9199
os: [macos-15]
@@ -114,6 +122,8 @@ jobs:
114122
run: scripts/setup_spm_tests.sh
115123
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
116124
if: contains(join(inputs.platforms), matrix.platform) || matrix.os == 'macos-14'
125+
env:
126+
FIREBASE_IS_NIGHTLY_TESTING: ${{ inputs.is_nightly && '1' || '' }}
117127
with:
118128
timeout_minutes: 15
119129
max_attempts: 3
@@ -123,3 +133,9 @@ jobs:
123133
${{ inputs.target }} \
124134
${{ matrix.platform }} \
125135
${{ (contains(inputs.buildonly_platforms, matrix.platform) || contains(inputs.buildonly_platforms, 'all')) && 'spmbuildonly' || 'spm' }}
136+
- uses: actions/upload-artifact@v4
137+
if: ${{ failure() }}
138+
with:
139+
name: xcodebuild-logs-${{ inputs.target }}-${{ matrix.platform }}-${{ matrix.os }}-${{ matrix.xcode }}
140+
path: xcodebuild-*.log
141+
if-no-files-found: error

.github/workflows/common_quickstart_framework.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ permissions:
66
on:
77
workflow_call:
88
inputs:
9-
# The product to test be tested (e.g. `ABTesting`).
9+
# The product to be tested (e.g. `ABTesting`).
1010
product:
1111
required: true
1212
type: string
13+
# Optional. The scheme to be tested (e.g. `ABTesting (tvOS)`).
14+
scheme:
15+
required: false
16+
type: string
17+
default: ''
1318
# The Run ID of a successful zip packaging workflow.
1419
zip_run_id:
1520
required: true
@@ -53,6 +58,7 @@ jobs:
5358
env:
5459
plist_secret: ${{ secrets.plist_secret }}
5560
SDK: ${{ inputs.product }}
61+
SCHEME: ${{ inputs.scheme }}
5662
runs-on: ${{ inputs.os }}
5763
steps:
5864
- uses: actions/checkout@v4
@@ -82,7 +88,7 @@ jobs:
8288
timeout_minutes: 15
8389
max_attempts: 2
8490
retry_wait_seconds: 120
85-
command: ([ -z $plist_secret ] || scripts/test_quickstart_framework.sh "${SDK}")
91+
command: ([ -z $plist_secret ] || scripts/test_quickstart_framework.sh "${SDK}" "${SCHEME}")
8692
# Failure sequence to upload artifact.
8793
- uses: actions/upload-artifact@v4
8894
if: failure()

.github/workflows/crashlytics.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
uses: ./.github/workflows/common.yml
3131
with:
3232
target: FirebaseCrashlyticsUnit
33+
is_nightly: ${{ github.event_name == 'schedule' }}
3334

3435
catalyst:
3536
uses: ./.github/workflows/common_catalyst.yml

.github/workflows/messaging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ jobs:
198198
run: scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
199199
- name: Xcode
200200
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
201+
- name: Install watchOS simulators in case they are missing.
202+
run: sudo xcodebuild -downloadPlatform watchOS
201203
- name: Build
202204
run: ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)
203205
- name: Upload xcodebuild logs

.github/workflows/performance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ jobs:
106106
python-version: '3.11'
107107
- name: Xcode
108108
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
109+
- name: Install xcpretty
110+
run: gem install xcpretty
109111
- name: Setup quickstart
110112
run: scripts/setup_quickstart_spm.sh performance
111113
- name: Install Secret GoogleService-Info.plist
112114
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
113115
quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
114116
- name: Build swift quickstart
115117
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance swift)
116-
# - name: Build objc quickstart
117-
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance)
118118
- id: ftl_test
119119
uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
120120
with:

0 commit comments

Comments
 (0)