Skip to content
Merged
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
53 changes: 15 additions & 38 deletions .github/workflows/installations.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: installations

permissions:
contents: read

on:
workflow_dispatch:
pull_request:
paths:
- 'FirebaseInstallations**'
- '.github/workflows/installations.yml'
- '.github/workflows/common.yml'
- '.github/workflows/common_cocoapods.yml'
- 'Gemfile*'
schedule:
# Run every day at 10pm (PST) - cron uses UTC times
Expand All @@ -28,46 +33,18 @@ jobs:
product: FirebaseInstallations
target: FirebaseInstallations-Unit-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'

env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
strategy:
matrix:
# TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
target: [ios, tvos, macos --skip-tests, watchos]
build-env:
- os: macos-14
xcode: Xcode_16.2
test-specs: unit,integration
- os: macos-15
xcode: Xcode_16.3
test-specs: unit
runs-on: ${{ matrix.build-env.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Configure test keychain
run: scripts/configure_test_keychain.sh
- name: Install GoogleService-Info.plist
run: |
pod_lib_lint:
uses: ./.github/workflows/common_cocoapods.yml
with:
product: FirebaseInstallations
setup_command: |
scripts/configure_test_keychain.sh
mkdir -p FirebaseInstallations/Source/Tests/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
FirebaseInstallations/Source/Tests/Resources/GoogleService-Info.plist "$plist_secret"
- name: Get boolean for secrets available
id: secrets
run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
- name: Build and test
run: |
export FIS_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstallations.podspec \
--platforms=${{ matrix.target }} --test-specs=${{ matrix.build-env.test-specs }}
export FIS_INTEGRATION_TESTS_REQUIRED=1
secrets:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}

quickstart:
# Don't run on private repo unless it is a PR.
Expand Down Expand Up @@ -129,7 +106,7 @@ jobs:
flags: [
'--use-static-frameworks'
]
needs: pod-lib-lint
needs: pod_lib_lint
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
Expand Down
Loading