Skip to content

Commit

Permalink
Merge branch 'improve-pipeline' of https://github.com/Qowaiv/Qowaiv i…
Browse files Browse the repository at this point in the history
…nto improve-pipeline
  • Loading branch information
Corniel committed Mar 19, 2024
2 parents d1e60db + 2e984a3 commit 1603e33
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-test.yaml
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Test
run: |
dotnet test specs/Qowaiv.Specs --configuration Release \
--logger trx \
--logger "trx;LogFileName=test-results.trx" \
/p:CollectCoverage=true \
/p:ThresholdType=branch \
/p:CoverletOutputFormat=opencover
Expand All @@ -65,5 +65,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
.\.sonar\scanner\dotnet-sonarscanner end \
./.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()
with:
name: test-results
path: '**/test-results.trx'
16 changes: 16 additions & 0 deletions .github/workflows/test-report.yml
@@ -0,0 +1,16 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['Build']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: Unit test results
path: '**/*.trx'
reporter: dotnet-trx

0 comments on commit 1603e33

Please sign in to comment.