Skip to content

Commit

Permalink
Run Messaging CI on Xcode 15
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Oct 31, 2023
1 parent 60ac2d8 commit 3efa5f5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 30 deletions.
61 changes: 38 additions & 23 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
Expand All @@ -46,58 +46,58 @@ jobs:
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: Xcode
run: sudo xcode-select -s /Applications/xcode_15.0.1.app/Contents/Developer
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)


pod-lib-lint:
# 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'
runs-on: macos-12

strategy:
matrix:
podspec: [FirebaseMessagingInterop.podspec, FirebaseMessaging.podspec]
target: [ios, tvos, macos --skip-tests, watchos --skip-tests] # skipping tests on mac because of keychain access
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Build and test
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }}

spm:
# 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'
runs-on: macos-12
strategy:
matrix:
target: [iOS, watchOS]
steps:
- uses: actions/checkout@v3
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }} spm

spm-cron:
# Don't run on private repo.
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
runs-on: macos-12
strategy:
matrix:
target: [tvOS, macOS, catalyst]
target: [iOS, watchOS, tvOS, macOS, catalyst]
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }} spm

Expand All @@ -122,7 +122,14 @@ jobs:
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: macos-12
strategy:
matrix:
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand All @@ -131,6 +138,8 @@ jobs:
- name: Install Secret GoogleService-Info.plist
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Test objc quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
Expand Down Expand Up @@ -205,6 +214,8 @@ jobs:
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
- name: Prereqs
run: scripts/install_prereqs.sh MessagingSample iOS
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode15.0.1.app/Contents/Developer
- name: Build
run: ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)

Expand All @@ -228,6 +239,8 @@ jobs:
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
- name: Prereqs
run: scripts/install_prereqs.sh SwiftUISample iOS
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode15.0.1.app/Contents/Developer
- name: Build
run: ([ -z $plist_secret ] || scripts/build.sh SwiftUISample iOS)

Expand All @@ -251,6 +264,8 @@ jobs:
FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
- name: Prereqs
run: scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode15.0.1.app/Contents/Developer
- name: Build
run: ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)

14 changes: 7 additions & 7 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# - os: macos-12
# xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
xcode: Xcode_15.0.1
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
xcode: Xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -81,7 +81,7 @@ jobs:

spm-cron:
# Don't run on private repo.
# if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
strategy:
matrix:
target: [tvOS, macOS, catalyst, watchOS]
Expand All @@ -90,7 +90,7 @@ jobs:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
xcode: Xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -115,7 +115,7 @@ jobs:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
xcode: Xcode_15.0.1
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: xcode_15.0.1
xcode: Xcode_15.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -191,7 +191,7 @@ jobs:
storage-cron-only:
# Don't run on private repo.
# if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
strategy:
matrix:
target: [ios, tvos, macos, watchos]
Expand Down

0 comments on commit 3efa5f5

Please sign in to comment.