Skip to content

Commit

Permalink
update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdock committed Sep 28, 2024
1 parent 07cf128 commit 17d63ec
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,24 @@ jobs:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
platform: [macOS, iOS, tvOS, watchOS]
include:
- platform: macOS
destination: 'generic/platform=macOS'
test_cmd: 'swift test'
- platform: iOS
destination: 'platform=iOS Simulator,name=iPhone 14'
test_cmd: 'xcodebuild -scheme DFService test'
- platform: tvOS
destination: 'platform=tvOS Simulator,name=Apple TV 4K'
test_cmd: 'xcodebuild -scheme DFService test'
- platform: watchOS
destination: 'platform=watchOS Simulator,name=Apple Watch Series 7'
test_cmd: 'xcodebuild -scheme DFService test'
os: [macos-12,macos-latest]
runs-on: ${{ matrix.os }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build
- name: Run tests
run: swift test

- name: Run tests on ${{ matrix.platform }}
run: ${{ matrix.test_cmd }} -destination ${{ matrix.destination }}

0 comments on commit 17d63ec

Please sign in to comment.