Skip to content

Auto-update dependencies. #352

Auto-update dependencies.

Auto-update dependencies. #352

Workflow file for this run

name: Sample
on:
push:
branches: [ master ]
paths:
- '.github/workflows/sample.yml'
- 'Firebase*UI/**'
- '*.podspec'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/storage.yml'
- 'Firebase*UI/**'
- '*.podspec'
workflow_dispatch:
jobs:
swift:
name: Swift build
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup
run: |
cd samples/swift
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
- name: Build
run: |
cd samples/swift
xcodebuild \
-workspace FirebaseUI-demo-swift.xcworkspace \
-scheme FirebaseUI-demo-swift \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro' \
clean build test \
ONLY_ACTIVE_ARCH=YES | xcpretty
objc:
name: ObjC build
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup
run: |
cp samples/GoogleService-Info-dummy.plist samples/swift/GoogleService-Info.plist
cd samples/objc
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
- name: Build
# Note: tests aren't run here because the ObjC sample has no test targets.
run: |
cp samples/GoogleService-Info-dummy.plist samples/objc/GoogleService-Info.plist
cd samples/objc
xcodebuild \
-workspace FirebaseUI-demo-objc.xcworkspace \
-scheme FirebaseUI-demo-objc \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro' \
clean build \
ONLY_ACTIVE_ARCH=YES | xcpretty