From c943b93e97b33c767406ff43902024349f594e9a Mon Sep 17 00:00:00 2001 From: Jarkko Piiroinen <183207+jmp@users.noreply.github.com> Date: Fri, 29 Oct 2021 18:30:14 +0300 Subject: [PATCH] Enable coverage on Linux --- .github/workflows/tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e79ad5d..69ae903 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v2 with: - fail_ci_if_error: true + name: macOS linux: name: Linux runs-on: ubuntu-latest @@ -38,4 +38,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Run tests - run: swift test + run: swift test --enable-code-coverage + - name: Convert coverage to lcov + run: llvm-cov export -format=lcov .build/debug/*PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > coverage.lcov + - name: Upload coverage + uses: codecov/codecov-action@v2 + with: + name: Linux