|
|
@@ -27,25 +27,41 @@ jobs:
|
|
|
# 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, tvos, macos, watchos]
|
|
|
+ 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: Xcode
|
|
|
+ run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
|
|
|
- name: Setup Bundler
|
|
|
run: scripts/setup_bundler.sh
|
|
|
- - name: Integration Test Server
|
|
|
- run: FirebaseFunctions/Backend/start.sh synchronous
|
|
|
+ # The integration tests are flaky on Xcode 15 so only run the unit tests. The integration tests still run with SPM.
|
|
|
+ # - name: Integration Test Server
|
|
|
+ # run: FirebaseFunctions/Backend/start.sh synchronous
|
|
|
- name: Build and test
|
|
|
run: |
|
|
|
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseFunctions.podspec --platforms=${{ matrix.target }}
|
|
|
+ scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseFunctions.podspec \
|
|
|
+ --test-specs=unit --platforms=${{ matrix.target }}
|
|
|
|
|
|
spm-integration:
|
|
|
# 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:
|
|
|
+ os: [macos-12]
|
|
|
+ include:
|
|
|
+ - os: macos-12
|
|
|
+ xcode: Xcode_14.2
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
env:
|
|
|
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
|
|
|
steps:
|
|
|
@@ -57,8 +73,8 @@ jobs:
|
|
|
run: scripts/setup_spm_tests.sh
|
|
|
- name: Integration Test Server
|
|
|
run: FirebaseFunctions/Backend/start.sh synchronous
|
|
|
- - name: Functions Unit Tests
|
|
|
- run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFunctionsUnit iOS spm
|
|
|
+ - name: Xcode
|
|
|
+ run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
|
|
|
- name: iOS Swift Integration Tests (including Swift library)
|
|
|
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFunctionsIntegration iOS spm
|
|
|
- name: iOS ObjC Integration Tests (using Swift library)
|
|
|
@@ -69,15 +85,23 @@ jobs:
|
|
|
spm-unit:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
|
|
|
- runs-on: macos-12
|
|
|
strategy:
|
|
|
matrix:
|
|
|
target: [iOS, tvOS, macOS, catalyst, watchOS]
|
|
|
+ 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: Xcode
|
|
|
+ run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
|
|
|
- name: Initialize xcodebuild
|
|
|
run: scripts/setup_spm_tests.sh
|
|
|
- name: Unit Tests
|