Update tests.yml #7
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: "SwiftYMD CI" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
mac-os: | |
name: macOS | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Xcode 15 | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15' | |
- name: Build for macOS | |
run: swift build -c release -v | |
- name: Test for macOS | |
run: swift test -c release -v | |
- name: Set up iOS Simulator | |
run: | | |
xcrun simctl boot "iPhone 15 Pro" | |
- name: Build for iOS | |
run: xcodebuild -destination 'platform=iOS Simulator,name=iPhone 15 Pro' -scheme swift-ymd build | |
- name: Test on iOS Simulator | |
run: xcodebuild -destination 'platform=iOS Simulator,name=iPhone 15 Pro' -scheme swift-ymd test | |
linux: | |
name: Linux | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build for Linux | |
run: swift build -c release -v | |
- name: Test for Linux | |
run: swift test -c release -v |