From a01698199964354794d83ccd005f2bc7956734b2 Mon Sep 17 00:00:00 2001 From: Antonello Provenzano Date: Tue, 12 Mar 2024 20:31:10 +0100 Subject: [PATCH] Producing the code coverage during CI --- .github/workflows/ci.yml | 8 +++++++- test/Deveel.Pipelines.XUnit/Deveel.Pipelines.XUnit.csproj | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc2e6fd..95aa17c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,13 @@ jobs: run: dotnet build -c Release --no-restore --version-suffix ${{ github.run_number }} - name: Test - run: dotnet test -c Release --no-build --verbosity normal + run: dotnet test -c Release --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + + - name: Upload Coverage Reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: deveel/deveel.pipeline publish: needs: build diff --git a/test/Deveel.Pipelines.XUnit/Deveel.Pipelines.XUnit.csproj b/test/Deveel.Pipelines.XUnit/Deveel.Pipelines.XUnit.csproj index 83c0e8c..07c3b39 100644 --- a/test/Deveel.Pipelines.XUnit/Deveel.Pipelines.XUnit.csproj +++ b/test/Deveel.Pipelines.XUnit/Deveel.Pipelines.XUnit.csproj @@ -12,6 +12,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + @@ -19,7 +23,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all