Skip to content

Commit

Permalink
Revert code coverage yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
renzo-baasdam committed Mar 19, 2024
1 parent e255996 commit ff92610
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ff92610

Please sign in to comment.