Skip to content

Set up GitHub Actions testing with iPhone platform targeting and add meaningful unit tests #5

Set up GitHub Actions testing with iPhone platform targeting and add meaningful unit tests

Set up GitHub Actions testing with iPhone platform targeting and add meaningful unit tests #5

Workflow file for this run

---
name: Test
"on":
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Build for macOS
run: swift build
- name: Run tests
run: swift test
- name: Build for iOS
run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios12.0-simulator"