Skip to content

Avoid warnings on the latest Xcode #162

Avoid warnings on the latest Xcode

Avoid warnings on the latest Xcode #162

Workflow file for this run

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