Skip to content

Commit

Permalink
Merge pull request #63 from mxcl/codecov-linux
Browse files Browse the repository at this point in the history
Code coverage for linux
  • Loading branch information
mxcl authored Aug 1, 2020
2 parents 07007a5 + 7924d20 commit 8b90260
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,21 @@ jobs:
- uses: fwal/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- run: swift test --parallel --enable-code-coverage
if: ${{ matrix.swift != '4.2' }}
- run: swift test --parallel
if: ${{ matrix.swift == '4.2' }}
- name: Generate Coverage Report
if: ${{ matrix.swift != '4.2' }}
run: |
sudo apt-get -qq update && sudo apt-get -qq install llvm-10
export b=$(swift build --show-bin-path) && llvm-cov-10 \
export -format lcov \
-instr-profile=$b/codecov/default.profdata \
--ignore-filename-regex='\.build/' \
$b/Path.swiftPackageTests.xctest \
> info.lcov
- uses: codecov/codecov-action@v1
if: ${{ matrix.swift != '4.2' }}
with:
file: ./info.lcov

0 comments on commit 8b90260

Please sign in to comment.