Skip to content

Commit

Permalink
fix test job command and coverage report location
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Apr 3, 2024
1 parent 9151e28 commit 4bcfd1c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ jobs:
uses: actions/checkout@v3

- name: Build and Test
run: |
swift build
swift test
run: xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Release -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 14" -quiet test

- name: Generate Coverage Report
run: |
xcrun xccov view --report <derived-data-path>/Logs/Test/*.xccovreport > coverage.txt
xcrun xccov view --report build/Logs/Test/*.xccovreport > coverage.txt

0 comments on commit 4bcfd1c

Please sign in to comment.