Update test-pipeline.yml

This commit is contained in:
Felix Weiß
2023-06-17 11:17:21 +02:00
committed by GitHub
parent f5e6d7d6af
commit 2df944da8c

View File

@@ -41,8 +41,17 @@ jobs:
- name: 'Run tests' - name: 'Run tests'
run: | run: |
cd '${{ github.workspace }}/MewtocolTests' cd '${{ github.workspace }}/MewtocolTests'
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/ dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults
- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.22
with:
reports: '${{ github.workspace }}/MewtocolTests/TestResults'
targetdir: '${{ github.workspace }}/MewtocolTests/Reports'
reporttypes: Html_Dark;HtmlInline;MarkdownSummaryGithub;Badges
historydir: '${{ github.workspace }}/MewtocolTests/Hist'
title: Report
#Upload to codecov #Upload to codecov
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
@@ -54,4 +63,4 @@ jobs:
with: with:
key: coverage-data key: coverage-data
path: | path: |
${{ github.workspace }}/MewtocolTests/TestResults ${{ github.workspace }}/MewtocolTests/TestResults