Add tvOS support #43
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: Test Pull Requests | |
on: | |
pull_request: | |
branches: [ main ] | |
# this allows us to manually run this job | |
workflow_dispatch: | |
jobs: | |
swift-code-checks: | |
name: Code Tests | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Lint code | |
run: swiftlint lint --config .swiftlint.yml --reporter github-actions-logging | |
- name: Build for iOS | |
run: xcodebuild -scheme UID2 -destination "generic/platform=iOS" | |
- name: Build for tvOS | |
run: xcodebuild -scheme UID2 -destination "generic/platform=tvOS" | |
- name: Run unit tests | |
run: xcodebuild test -scheme UID2Tests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14" | |
- name: Run unit tests on tvOS | |
run: xcodebuild test -scheme UID2Tests -sdk appletvsimulator16.1 -destination "OS=16.1,name=Apple TV" |