RunestoneSwiftUI #13
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: Build and Test | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'Sources/**' | |
- '!Sources/Runestone/Documentation.docc/**' | |
- 'Tests/**' | |
jobs: | |
build: | |
name: Build and test on iPhone 14 | |
runs-on: macOS-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
xcodebuild build-for-testing -scheme Runestone -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14' | |
- name: Test | |
env: | |
scheme: ${{ 'default' }} | |
platform: ${{ 'iOS Simulator' }} | |
run: | | |
xcodebuild test-without-building -scheme Runestone -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14' |