Update test-pipeline.yml

This commit is contained in:
Felix Weiß
2023-11-13 12:27:15 +01:00
committed by GitHub
parent 48b04dfb7f
commit 18d5118b43

View File

@@ -23,6 +23,13 @@ jobs:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: 'Setup dotnet'
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
- name: 'Checkout' - name: 'Checkout'
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -31,13 +38,6 @@ jobs:
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch id: extract_branch
#- name: 'Setup dotnet'
# uses: actions/setup-dotnet@v2
# with:
# dotnet-version: |
# 6.0.x
# 7.0.x
- name: 'Run tests' - name: 'Run tests'
run: dotnet test "./MewtocolTests" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../Builds/TestResults/coverage.opencover.xml run: dotnet test "./MewtocolTests" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../Builds/TestResults/coverage.opencover.xml