Refactor GitHub Actions workflow for Swift package testing
This commit is contained in:
@@ -10,15 +10,14 @@ on:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
iOS:
|
||||
name: Test iOS
|
||||
test:
|
||||
name: Test Swift Package
|
||||
runs-on: macOS-latest
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
||||
strategy:
|
||||
matrix:
|
||||
destination: ["OS=latest,name=iPhone 17"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: iOS - ${{ matrix.destination }}
|
||||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "AudioStreaming.xcodeproj" -scheme "AudioStreaming" -destination "${{ matrix.destination }}" clean test | xcpretty
|
||||
- name: Build
|
||||
run: swift build
|
||||
- name: Run tests
|
||||
run: swift test --parallel
|
||||
|
||||
Reference in New Issue
Block a user