From ff92610d3a5f6d99b16375822a81f2200e243d57 Mon Sep 17 00:00:00 2001 From: Renzo Baasdam Date: Tue, 19 Mar 2024 21:36:37 +0100 Subject: [PATCH] Revert code coverage yaml changes --- .github/workflows/code-coverage.yml | 43 ++++++++++------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 51c95140d..3d1925a7e 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -1,35 +1,22 @@ name: Code coverage on: - workflow_run: - workflows: ['Build'] - types: - - completed + push: + branches: + - master jobs: - report: + build: runs-on: ubuntu-latest steps: - - uses: dorny/test-reporter@v1 + - uses: actions/checkout@v1 + - name: Setup .NET 8.0 + uses: actions/setup-dotnet@v1 with: - artifact: test-results - name: Unit test results - path: '**/*.trx' - reporter: dotnet-trx - -# jobs: -# build: -# runs-on: ubuntu-latest - -# steps: -# - uses: actions/checkout@v1 -# - name: Setup .NET 8.0 -# uses: actions/setup-dotnet@v1 -# with: -# dotnet-version: "8.0.x" -# - name: Generate coverage report -# run: dotnet test ./specs/Qowaiv.Specs -f net8.0 /p:CollectCoverage=true /p:ThresholdType=branch /p:CoverletOutputFormat=lcov --configuration Release -# - name: Publish coverage report to coveralls.io -# uses: coverallsapp/github-action@master -# with: -# github-token: ${{ secrets.GITHUB_TOKEN }} -# path-to-lcov: ./specs/Qowaiv.Specs/coverage.net8.0.info + dotnet-version: "8.0.x" + - name: Generate coverage report + run: dotnet test ./specs/Qowaiv.Specs -f net8.0 /p:CollectCoverage=true /p:ThresholdType=branch /p:CoverletOutputFormat=lcov --configuration Release + - name: Publish coverage report to coveralls.io + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./specs/Qowaiv.Specs/coverage.net8.0.info