mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
60 lines
2.1 KiB
YAML
60 lines
2.1 KiB
YAML
name: sdk.analytics
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'FirebaseAnalytics**'
|
|
- 'GoogleAppMeasurement**'
|
|
- '.github/workflows/sdk.analytics.yml'
|
|
- 'Package.swift'
|
|
- 'Gemfile*'
|
|
schedule:
|
|
# Run every day at 2am (PDT) / 5am (EDT) - cron uses UTC times
|
|
- cron: '0 9 * * *'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
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'
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos, macos]
|
|
os: [macos-15, macos-26]
|
|
include:
|
|
- os: macos-15
|
|
xcode: Xcode_26.2
|
|
- os: macos-26
|
|
xcode: Xcode_26.4
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Xcode
|
|
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
|
|
- name: Setup simulator
|
|
if: matrix.target != 'macos'
|
|
uses: ./.github/actions/setup_simulator
|
|
with:
|
|
platform: ${{ matrix.target }}
|
|
- name: GoogleAppMeasurement
|
|
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
|
|
- name: FirebaseAnalytics
|
|
run: scripts/third_party/travis/retry.sh pod spec lint FirebaseAnalytics.podspec --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
|
|
|
|
# TODO: Consider pushing GoogleAppMeasurement.podspec to SpecsDev to enable similar test
|
|
# for FirebaseAnalytics.podspec
|