mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
* Rename FirebaseAnalyticsOnDeviceConversion.podspec.json to FirebaseAnalyticsOnDeviceConversion.podspec * Convert JSON podspec to ruby * Directly translate dep versioning * Remove trailing whitespace * Update FirebaseManifest.swift * Update .github/workflows/analytics.yml * Updat Dangerfile * This maybe works? * It pretty much worked * Revert FirebaseAnalyticsSwift/Sources/Analytics+SwiftUI.swift * Fix CI
47 lines
2.0 KiB
YAML
47 lines
2.0 KiB
YAML
name: analytics
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'FirebaseAnalytics**'
|
|
- 'GoogleAppMeasurement**'
|
|
- '.github/workflows/analytics.yml'
|
|
- 'Gemfile*'
|
|
schedule:
|
|
# Run every day at 1am (PST) - cron uses UTC times
|
|
- cron: '0 9 * * *'
|
|
|
|
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'
|
|
|
|
runs-on: macos-12
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos, macos]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
|
|
with:
|
|
ruby-version: '2.7'
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: GoogleAppMeasurement
|
|
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
|
|
- name: FirebaseAnalyticsSwift
|
|
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=${{ matrix.target }}
|
|
# The following steps are only run on `ios` due to product availability.
|
|
- name: GoogleAppMeasurementOnDeviceConversion
|
|
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurementOnDeviceConversion.podspec.json --platforms=ios --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
|
|
- name: FirebaseAnalyticsOnDeviceConversion
|
|
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsOnDeviceConversion.podspec --platforms=ios
|
|
|
|
# TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
|
|
# for FirebaseAnalytics.podspec.json
|