Merge pull request #1663 from firebase/dpebot-repositorygardener #548
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Analytics | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/analytics.yml' | |
- 'analytics/**' | |
- 'scripts/*' | |
- 'scripts/analytics.sh' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/analytics.yml' | |
- 'analytics/**' | |
- 'scripts/*' | |
- 'scripts/analytics.sh' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
env: | |
SAMPLE: Analytics | |
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} | |
jobs: | |
cocoapods: | |
name: cocoapods - ${{ matrix.os }} | |
runs-on: macOS-15 | |
strategy: | |
matrix: | |
os: [iOS, catalyst, tvOS, macOS] | |
xcode: ["16.1"] | |
include: | |
- os: iOS | |
device: iPhone 16 | |
test: true | |
- os: catalyst | |
device: localhost | |
test: false # disabled due to a permissions error on launch (OSStatus -54). | |
- os: tvOS | |
device: Apple TV 4K (3rd generation) (at 1080p) | |
scheme: AnalyticsExampleTV | |
test: true | |
- os: macOS | |
device: localhost | |
scheme: AnalyticsExampleMac | |
test: true | |
env: | |
SPM: false | |
LEGACY: false | |
OS: ${{ matrix.os }} | |
DEVICE: ${{ matrix.device }} | |
SCHEME: ${{ matrix.scheme }} | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup | |
run: | | |
cd analytics | |
gem install bundler | |
bundle install | |
gem install xcpretty | |
bundle exec pod install --repo-update | |
../scripts/install_prereqs/analytics.sh | |
- name: Build Swift | |
run: ./scripts/test.sh | |
env: | |
TEST: ${{ matrix.test }} | |
SWIFT_SUFFIX: "" | |
#TODO: Add `spm` job. |