|
|
@@ -20,25 +20,29 @@ concurrency:
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
jobs:
|
|
|
- unit:
|
|
|
+ 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:
|
|
|
- target: [iOS, tvOS, macOS]
|
|
|
+ # TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
|
|
|
+ target: [ios, tvos, macos --skip-tests, 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 }}
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
- name: Setup Bundler
|
|
|
run: scripts/setup_bundler.sh
|
|
|
- - name: Install xcpretty
|
|
|
- run: gem install xcpretty
|
|
|
- - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
|
|
|
- run: scripts/third_party/travis/retry.sh scripts/build.sh Database ${{ matrix.target }} unit
|
|
|
+ - 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 FirebaseDatabase.podspec --test-specs=unit --platforms=${{ matrix.target }}
|
|
|
|
|
|
integration:
|
|
|
# Don't run on private repo unless it is a PR.
|
|
|
@@ -61,15 +65,23 @@ jobs:
|
|
|
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, 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
|
|
|
@@ -112,26 +124,6 @@ jobs:
|
|
|
- name: Test swift quickstart
|
|
|
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
|
|
|
|
|
|
- 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: [FirebaseDatabase.podspec, FirebaseDatabaseSwift.podspec --allow-warnings]
|
|
|
- target: [ios, tvos, macos, watchos]
|
|
|
- exclude:
|
|
|
- - podspec: FirebaseDatabaseSwift.podspec --allow-warnings
|
|
|
- target: watchos
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
- - uses: ruby/setup-ruby@v1
|
|
|
- - name: Setup Bundler
|
|
|
- run: scripts/setup_bundler.sh
|
|
|
- - name: Build and test
|
|
|
- run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --skip-tests --platforms=${{ matrix.target }}
|
|
|
-
|
|
|
database-cron-only:
|
|
|
# Don't run on private repo.
|
|
|
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
|