mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
* Create NanoPb code generation scripts (#8336) * Create NanoPb code generation scripts * Fix style and add README * Fix copyright * Update proto_generator.py * Update README.md * Create nanopb options file. (#8371) * Create NanoPb code generation scripts * Fix style and add README * Fix copyright * Update perf_metrics.options * Update options with map * Add generated proto files. * Update imports. * Convert Objective-C Classes to Nanopb (#8387) * Convert all traces to nanopb * Refactor for loop. * Add set has_application_info to true. * Incorporated comments. * Fix style * Create NanoPb code generation scripts (#8336) * Create NanoPb code generation scripts * Fix style and add README * Fix copyright * Update proto_generator.py * Update README.md * Create nanopb options file. (#8371) * Create NanoPb code generation scripts * Fix style and add README * Fix copyright * Update perf_metrics.options * Update options with map * Add generated proto files. * Update imports. * Convert Objective-C Classes to Nanopb (#8387) * Convert all traces to nanopb * Refactor for loop. * Add set has_application_info to true. * Incorporated comments. * Fix style * Fix style * Convert nanopb struct to GDTCOREventDataObject and update the source code to use nanopb struct. (#8439) * Convert all traces to nanopb * Refactor for loop. * WIP: nanopb conversion in FPRClient and FPREvent * Update FPRClientTest.m * Update FPRClient.m * Update FPRClientTest.m * Add set has_application_info to true. * Remove proto imports. * Set has_fields to be true in FPRTestUtils.m * Completed GDTEvent conversion. * Fix sampler tests. * Fix style * Refactor nanopb struct setter * Fix style * Fix pod-lib-lint failures. * Update FPRClient with decoded string * Set some "_has" fields to true. * Add prefix to extern methods. * Fix style. * Update FPRClient to use trace.name without FPRDecodeString * Fix style * Incorporate comments. * Integrate Performance with SPM (#8476) * Convert all traces to nanopb * Refactor for loop. * WIP: nanopb conversion in FPRClient and FPREvent * Update FPRClientTest.m * Update FPRClient.m * Update FPRClientTest.m * Add set has_application_info to true. * Remove proto imports. * Set has_fields to be true in FPRTestUtils.m * Completed GDTEvent conversion. * Fix sampler tests. * Fix style * Refactor nanopb struct setter * Fix style * Fix pod-lib-lint failures. * Update FPRClient with decoded string * Set some "_has" fields to true. * Add prefix to extern methods. * Fix style. * Update FPRClient to use trace.name without FPRDecodeString * Fix style * Update Package.swift * Update Package.swift * Update Package.swift * Made SDK and unit tests buildable. * Made all unit tests passing. * Update keyWindow style. * Add Performance to workflow. * Update FPRUIViewControllerInstrument.h * Incorporate comments. * Add Performance to SwiftPMTests. * Update style. * Fix Unit tests and update workflow. * Add FirebasePerformance wrapper * Update import statement. * Update style. * Update performance.yml * Create PerformanceUnit.xcscheme * Update objc-module.m * Update objc-module.m * Updae objc-header.m * Update objc-header.m * Incorporate feedback. * Update objc-header.m * Organize folder structure to fix the spm tests. * Update public import path * Delete xcodebuild.log * Update workflow files * Fix failing swift-test for Perf SPM (#8507) * Fix UIKit import * Update FPRNetworkTraceTest.m * Exclude TARGET_OS_MACCATALYST from objc header test * Update main.swift * Update main.swift Co-authored-by: Paul Beusterien <paulbeusterien@google.com> * Remove Protobuf dependency (#8511) * Remove protobuf dependency * Update FirebasePerformance.podspec * Incorporate comments. * Update UIKit import Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
145 lines
5.6 KiB
YAML
145 lines
5.6 KiB
YAML
# Merge the yml file to master branch for the cron job schedule to be effective.
|
|
# Reference: https://github.community/t/on-schedule-per-branch/17525
|
|
name: performance
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
# Performance sources
|
|
- 'FirebasePerformance/**'
|
|
# Podspec
|
|
- 'FirebasePerformance.podspec'
|
|
# YML configuration file
|
|
- '.github/workflows/performance.yml'
|
|
# Rebuild on Ruby infrastructure changes
|
|
- 'Gemfile*'
|
|
schedule:
|
|
# Run every day at 11pm (PST) - cron uses UTC times
|
|
# Specified in format 'minutes hours day month dayofweek'
|
|
- cron: '0 7 * * *'
|
|
|
|
jobs:
|
|
|
|
# Build and run the unit tests for Firebase performance SDK.
|
|
performance:
|
|
# 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-latest
|
|
strategy:
|
|
matrix:
|
|
target: [iOS, tvOS]
|
|
test: [unit, proddev]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
|
|
run: scripts/third_party/travis/retry.sh scripts/build.sh Performance ${{ matrix.target }} ${{ matrix.test }}
|
|
|
|
# Podspec lint check for Firebase Performance
|
|
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-latest
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Build
|
|
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --skip-tests --platforms=${{ matrix.target }}
|
|
|
|
quickstart:
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
|
|
|
|
env:
|
|
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup quickstart
|
|
run: scripts/setup_quickstart.sh performance
|
|
- name: Install Secret GoogleService-Info.plist
|
|
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
|
|
quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
|
|
- name: Install Secret FIREGSignInInfo.h
|
|
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
|
|
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
|
|
- name: Test swift quickstart
|
|
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance)
|
|
- name: Test objc quickstart
|
|
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance)
|
|
|
|
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-latest
|
|
strategy:
|
|
matrix:
|
|
target: [iOS]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Initialize xcodebuild
|
|
run: scripts/setup_spm_tests.sh
|
|
- name: Unit Tests
|
|
run: scripts/third_party/travis/retry.sh ./scripts/build.sh PerformanceUnit ${{ matrix.target }} spm
|
|
|
|
spm-cron:
|
|
# Don't run on private repo.
|
|
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
|
|
runs-on: macOS-latest
|
|
strategy:
|
|
matrix:
|
|
target: [tvOS]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Initialize xcodebuild
|
|
run: scripts/setup_spm_tests.sh
|
|
- name: Unit Tests
|
|
run: scripts/third_party/travis/retry.sh ./scripts/build.sh PerformanceUnit ${{ matrix.target }} spm
|
|
|
|
catalyst:
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Setup project and Build Catalyst
|
|
run: scripts/test_catalyst.sh FirebasePerformance build
|
|
|
|
podspec-presubmit:
|
|
# Don't run on private repo unless it is a PR.
|
|
if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: Build and test
|
|
run: scripts/third_party/travis/retry.sh pod spec lint FirebasePerformance.podspec --skip-tests --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'
|
|
|
|
performance-cron-only:
|
|
# Don't run on private repo.
|
|
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
target: [ios, tvos]
|
|
flags: [
|
|
'--skip-tests --use-static-frameworks',
|
|
'--skip-tests --use-libraries'
|
|
]
|
|
needs: pod-lib-lint
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Bundler
|
|
run: scripts/setup_bundler.sh
|
|
- name: PodLibLint Performance Cron
|
|
run: |
|
|
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
|