Skip to content

Commit

Permalink
Try test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
renzo-baasdam committed Mar 19, 2024
1 parent 2e984a3 commit 24c0cd1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
run: |
./.sonar/scanner/dotnet-sonarscanner end \
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"
- name: Upload Test Results
- name: Upload test results
uses: actions/upload-artifact@v4
if: success() || failure()
Expand Down
42 changes: 29 additions & 13 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,37 @@ on:
push:
branches:
- master
- improve-pipeline # temporary, remove before merge
workflow_run:
workflows: ['Build']
types:
- completed

jobs:
build:
report:
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
- uses: dorny/test-reporter@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./specs/Qowaiv.Specs/coverage.net8.0.info
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

0 comments on commit 24c0cd1

Please sign in to comment.