Merge pull request #1221 from firebase/mc/fb-dep #590
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: Sample | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/sample.yml' | |
- 'Firebase*UI/**' | |
- '*.podspec' | |
pull_request: | |
branches: [ main ] | |
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 |