mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +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'
|
name: 'Run unit tests'
|
||||||
needs: check-plcs-online
|
needs: check-plcs-online
|
||||||
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
dotnet-version: [ '6.0.x' ]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: 'Setup dotnet ${{ matrix.dotnet-version }}'
|
|
||||||
|
- name: 'Setup dotnet'
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ matrix.dotnet-version }}
|
dotnet-version: '6.0.x'
|
||||||
|
|
||||||
- name: 'Run tests'
|
- name: 'Run tests'
|
||||||
run: |
|
run: |
|
||||||
cd '${{ github.workspace }}/MewtocolTests'
|
cd '${{ github.workspace }}/MewtocolTests'
|
||||||
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
||||||
|
|
||||||
#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
|
||||||
@@ -57,9 +57,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: '6.0.x'
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|||||||
Reference in New Issue
Block a user