Set up GitHub Actions testing with iPhone platform targeting and add meaningful unit tests #2
This file contains hidden or 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 | |
| "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 |