Merge pull request #50 from giginet/avoid-warnings #164
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: Crossroad | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
SwiftPM: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Tests | |
run: | | |
swift test --verbose | |
Carthage: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Tests | |
run: | | |
DESTINATION="platform=iOS Simulator,name=iPhone 8" SCHEME="Crossroad-iOS" | |
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}" | |
Demo: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Demo | |
run: | | |
DESTINATION="platform=iOS Simulator,name=iPhone 8" SCHEME="Crossroad-iOS" | |
xcodebuild build -project Demo/Demo.xcodeproj -scheme Demo -destination "${DESTINATION}" | |
tvOS: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Tests | |
run: | | |
DESTINATION="platform=tvOS Simulator,name=Apple TV 4K" SCHEME="Crossroad-tvOS" | |
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}" | |
macOS: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Tests | |
run: | | |
DESTINATION="platform=macOS" SCHEME="Crossroad-macOS" | |
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}" | |
Lint: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
gem install cocoapods | |
pod repo update | |
- name: SwiftLint | |
run: swiftlint --strict | |
- name: CocoaPods | |
run: pod lib lint --allow-warnings |