Use setup dotnet v2

This commit is contained in:
Sandoun
2023-06-16 10:39:41 +02:00
parent 0e0659000a
commit ad61361008

View File

@@ -29,19 +29,19 @@ jobs:
name: 'Run unit tests'
needs: check-plcs-online
runs-on: [self-hosted, linux, x64, womed-local-linux]
strategy:
matrix:
dotnet-version: [ '6.0.x' ]
steps:
- uses: actions/checkout@v3
- name: 'Setup dotnet ${{ matrix.dotnet-version }}'
- name: 'Setup dotnet'
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: '6.0.x'
- name: 'Run tests'
run: |
cd '${{ github.workspace }}/MewtocolTests'
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
#Upload to codecov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
@@ -57,9 +57,9 @@ jobs:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore