feat: Add .NET Standard 2.0 target

This commit is contained in:
Valters Melnalksnis
2022-11-09 21:57:31 +02:00
parent 19440e6d3b
commit 43764cc3f3
13 changed files with 76 additions and 37 deletions
+25 -23
View File
@@ -26,39 +26,41 @@ jobs:
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- run: dotnet restore
- name: Build
run: >
dotnet build
--configuration Release
--no-restore
/warnAsError
/nologo
/clp:NoSummary
- run: dotnet build --configuration Release --no-restore /warnAsError /nologo /clp:NoSummary
- name: Run Tests
run: >
dotnet test
-p:CollectCoverage=true
-p:CoverletOutput=TestResults/
-p:CoverletOutputFormat=opencover
--configuration Release
--no-build
run: dotnet test -p:CollectCoverage=true --configuration Release --no-build
env:
Nordigen__SecretId: ${{ secrets.NORDIGEN_SECRET_ID }}
Nordigen__SecretKey: ${{ secrets.NORDIGEN_SECRET_KEY }}
- name: ReSharper annotations
uses: VMelnalksnis/resharper-inspect-action@v0.2.5
with:
solution: NordigenDotNet.sln
resharper-version: 2022.1.2
treat-warnings-as-errors: true
- name: Gather Code Coverage
if: github.event.schedule == null
uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
resharper:
name: Resharper
runs-on: ubuntu-latest
if: false #ReSharper currently does not support .NET 7
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-dotnet@v3.0.3
- run: dotnet restore
- run: dotnet build --configuration Release --no-restore /warnAsError /nologo /clp:NoSummary
- name: ReSharper annotations
uses: VMelnalksnis/resharper-inspect-action@v0.2.5
with:
solution: NordigenDotNet.sln
resharper-version: 2022.1.2
treat-warnings-as-errors: true