Skip to content

Commit

Permalink
added enableCodeCoverage to xcodebuild test command
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed Nov 22, 2023
1 parent 7eada97 commit c9ee20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/swift-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Swift Lint
run: swiftlint --strict
- name: Test iOS
run: xcodebuild test -scheme RealityUI -destination "platform=iOS Simulator,name=iPhone 15"
run: xcodebuild test -scheme RealityUI -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES
- name: Fetch Coverage
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
Expand All @@ -29,4 +29,4 @@ jobs:
with:
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
- name: Test macOS
run: xcodebuild test -scheme RealityUI -destination "platform=macOS"
run: xcodebuild test -scheme RealityUI -destination "platform=macOS" -enableCodeCoverage YES

0 comments on commit c9ee20d

Please sign in to comment.