mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 11:11:23 +00:00
Use setup dotnet v2
This commit is contained in:
14
.github/workflows/build-pipeline.yml
vendored
14
.github/workflows/build-pipeline.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user