From 3869f699b9b86f9478ddd0ea4a67469f3c6293f3 Mon Sep 17 00:00:00 2001 From: Teodor92 Date: Sat, 16 Dec 2023 22:35:49 +0200 Subject: [PATCH] chore: added code coverage reporting --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62b3457..6e389c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,4 +26,17 @@ jobs: run: dotnet build --no-restore - name: Test - run: dotnet test --no-build --verbosity normal \ No newline at end of file + run: dotnet test --logger "trx" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov + + - name: Upload Test Results + uses: actions/upload-artifact@v2 + if: success() || failure() + with: + name: test-results + path: /test/MoreDotNet.Tests/TestResults/*.trx + + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: './test/MoreDotNet.Tests/coverage.net8.0.info' \ No newline at end of file