-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling CodeCoverage to swift test (#5)
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: swift build -v | ||
run: swift build | ||
- name: Run tests | ||
run: swift test -v | ||
run: swift test --enable-test-discovery --enable-code-coverage | ||
- name: Prepare Code Coverage | ||
run: xcrun llvm-cov export -format="lcov" .build/debug/TibberSwiftPackageTests.xctest/Contents/MacOS/TibberSwiftPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|