Skip to content
Closed
Changes from all commits
Commits
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
194 changes: 97 additions & 97 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,58 +32,58 @@ concurrency:
cancel-in-progress: true

jobs:
spm:
uses: ./.github/workflows/common.yml
with:
target: MessagingUnit
buildonly_platforms: tvOS, macOS, watchOS, catalyst, visionOS
# spm:
# uses: ./.github/workflows/common.yml
# with:
# target: MessagingUnit
# buildonly_platforms: tvOS, macOS, watchOS, catalyst, visionOS

catalyst:
uses: ./.github/workflows/common_catalyst.yml
with:
product: FirebaseMessaging
target: FirebaseMessaging-Unit-unit
# catalyst:
# uses: ./.github/workflows/common_catalyst.yml
# with:
# product: FirebaseMessaging
# target: FirebaseMessaging-Unit-unit

pod_lib_lint:
strategy:
matrix:
product: [FirebaseMessagingInterop, FirebaseMessaging]
uses: ./.github/workflows/common_cocoapods.yml
with:
product: ${{ matrix.product }}
# pod_lib_lint:
# strategy:
# matrix:
# product: [FirebaseMessagingInterop, FirebaseMessaging]
# uses: ./.github/workflows/common_cocoapods.yml
# with:
# product: ${{ matrix.product }}

# TODO(#12205) Update the build.sh script for this job from "test" instead of "build"
messaging-integration-tests:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: macos-15
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install simulators in case they are missing.
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
timeout_minutes: 15
max_attempts: 5
retry_wait_seconds: 120
command: sudo xcodebuild -downloadPlatform iOS
- name: Configure test keychain
run: scripts/configure_test_keychain.sh
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Install xcpretty
run: gem install xcpretty
- name: Install Secret GoogleService-Info.plist
run: |
mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
- name: BuildAndTest
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)
# messaging-integration-tests:
# # Don't run on private repo unless it is a PR.
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# runs-on: macos-15
# steps:
# - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
# - name: Install simulators in case they are missing.
# uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
# with:
# timeout_minutes: 15
# max_attempts: 5
# retry_wait_seconds: 120
# command: sudo xcodebuild -downloadPlatform iOS
# - name: Configure test keychain
# run: scripts/configure_test_keychain.sh
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
# - name: Xcode
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
# - name: Setup Bundler
# run: scripts/setup_bundler.sh
# - name: Install xcpretty
# run: gem install xcpretty
# - name: Install Secret GoogleService-Info.plist
# run: |
# mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
# scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
# FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
# - name: BuildAndTest
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)

quickstart:
uses: ./.github/workflows/common_quickstart.yml
Expand All @@ -97,54 +97,54 @@ jobs:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}


messaging-cron-only:
uses: ./.github/workflows/common_cocoapods_cron.yml
with:
product: FirebaseMessaging
platforms: '[ "ios", "tvos", "macos --skip-tests", "watchos --skip-tests" ]'
flags: '[ "--use-static-frameworks" ]'
# messaging-cron-only:
# uses: ./.github/workflows/common_cocoapods_cron.yml
# with:
# product: FirebaseMessaging
# platforms: '[ "ios", "tvos", "macos --skip-tests", "watchos --skip-tests" ]'
# flags: '[ "--use-static-frameworks" ]'

sample-build-test:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: macos-15
strategy:
matrix:
include:
- target: MessagingSample
platform: iOS
- target: SwiftUISample
platform: iOS
- target: MessagingSampleStandaloneWatchApp
platform: watchOS
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Install Secret GoogleService-Info.plist
run: |
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
- name: Prereqs
run: scripts/install_prereqs.sh ${{ matrix.target }} ${{ matrix.platform }}
- name: Install simulators in case they are missing.
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
timeout_minutes: 15
max_attempts: 5
retry_wait_seconds: 120
command: sudo xcodebuild -downloadPlatform ${{ matrix.platform }}
- name: Build
run: ([ -z $plist_secret ] || scripts/build.sh ${{ matrix.target }} ${{ matrix.platform }})
- name: Upload xcodebuild logs
if: failure()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: xcodebuild-logs-${{ matrix.target }}
path: xcodebuild-*.log
# sample-build-test:
# # Don't run on private repo unless it is a PR.
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# runs-on: macos-15
# strategy:
# matrix:
# include:
# - target: MessagingSample
# platform: iOS
# - target: SwiftUISample
# platform: iOS
# - target: MessagingSampleStandaloneWatchApp
# platform: watchOS
# steps:
# - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
# - name: Setup Bundler
# run: scripts/setup_bundler.sh
# - name: Xcode
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
# - name: Install Secret GoogleService-Info.plist
# run: |
# scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
# FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
# - name: Prereqs
# run: scripts/install_prereqs.sh ${{ matrix.target }} ${{ matrix.platform }}
# - name: Install simulators in case they are missing.
# uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
# with:
# timeout_minutes: 15
# max_attempts: 5
# retry_wait_seconds: 120
# command: sudo xcodebuild -downloadPlatform ${{ matrix.platform }}
# - name: Build
# run: ([ -z $plist_secret ] || scripts/build.sh ${{ matrix.target }} ${{ matrix.platform }})
# - name: Upload xcodebuild logs
# if: failure()
# uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
# with:
# name: xcodebuild-logs-${{ matrix.target }}
# path: xcodebuild-*.log

Loading