Skip to content

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

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 #2

Workflow file for this run

---
name: Test
"on":
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
run: >
sudo xcode-select -s
/Applications/Xcode_15.4.app/Contents/Developer
- name: Build
run: swift build
- name: Run tests
run: swift test
- name: Build for iOS Simulator
run: |
xcodebuild -scheme FDWaveformView \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
build \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO