Fix Observable namespace for Swift5.9/XCode15 conflict #37
Workflow file for this run
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: Lint, build and test | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Fetch all tags | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Resolve dependencies | |
run: | | |
brew bundle | |
bundle | |
# - name: Danger | |
# run: | | |
# bundle exec danger | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Restore SPM Cache | |
uses: actions/cache@v1 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Build and test (SPM) | |
run: | | |
swift build | |
swift test | |
- name: Build Cocoapods iOS Demo | |
run: | | |
set -eo pipefail | |
cd Examples | |
xcodegen | |
pod install --repo-update | |
xcodebuild build -scheme 'RxRealmDemo-iOS' -workspace 'RxRealmDemo.xcworkspace' -sdk iphonesimulator -destination "platform=iOS simulator,name=iPhone 11" |