# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: combine on: pull_request: paths: # Combine sources - 'FirebaseCombineSwift/**' # Podspecs - 'FirebaseCombineSwift.podspec' # This workflow - '.github/workflows/combine.yml' # Rebuild on Ruby infrastructure changes. - 'Gemfile' # Dependencies (Disabled to avoid building Firestore in presubmits) # - 'FirebaseCore/**' # - 'FirebaseAuth/**' # - 'FirebaseFunctions/**' # - 'Firestore/**' # - 'FirebaseStorageInternal/**' # - 'FirebaseStorage/**' schedule: # Run every day at 11pm (PST) - cron uses UTC times - cron: '0 7 * * *' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true jobs: xcodebuild: # 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-11 strategy: matrix: target: [iOS] steps: - uses: actions/checkout@v2 - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077 with: cache_key: ${{ matrix.os }} - name: Setup build run: scripts/install_prereqs.sh CombineSwift ${{ matrix.target }} xcodebuild - name: Build and test run: scripts/third_party/travis/retry.sh scripts/build.sh CombineSwift ${{ matrix.target }} xcodebuild storage-combine-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' env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} runs-on: macos-11 steps: - uses: actions/checkout@v2 - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077 with: cache_key: ${{ matrix.os }} - name: Setup Bundler run: scripts/setup_bundler.sh - name: Install Secret GoogleService-Info.plist run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \ FirebaseStorageInternal/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret" - name: Install Credentials.h run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.h.gpg \ FirebaseStorageInternal/Tests/Integration/Credentials.h "$plist_secret" - name: Install Credentials.swift run: | scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.swift.gpg \ FirebaseStorage/Tests/Integration/Credentials.swift "$plist_secret" - 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 StorageCombine all)