Skip to content

Commit

Permalink
use slather to generate coverage report and upload to codecov in same…
Browse files Browse the repository at this point in the history
… workflow
  • Loading branch information
armcknight committed Apr 4, 2024
1 parent 1328810 commit 96a04f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and Test
run: xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Debug -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet test
- name: Install Slather
run: gem install slather

- name: Generate Coverage Report
run: |
xcrun xccov view --report build/Logs/Test/*.xccovreport > coverage.txt
- name: Build and Test
run: xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Debug -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet test | slather coverage --configuration Debug && exit ${PIPESTATUS[0]}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
8 changes: 0 additions & 8 deletions .github/workflows/upload-codecov-report.yml

This file was deleted.

0 comments on commit 96a04f9

Please sign in to comment.