53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
run-tests:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v2.1.0
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore /nologo /clp:NoSummary
|
|
|
|
- name: Run Tests
|
|
run: >
|
|
dotnet test
|
|
--filter FullyQualifiedName!~Integration
|
|
-p:CollectCoverage=true
|
|
-p:CoverletOutput=TestResults/
|
|
-p:CoverletOutputFormat=opencover
|
|
-p:BuildInParallel=false
|
|
-m:1
|
|
--configuration Release
|
|
--no-build
|
|
|
|
- name: ReSharper annotations
|
|
uses: VMelnalksnis/resharper-inspect-action@v0.2.2
|
|
with:
|
|
solution: NordigenDotNet.sln
|
|
|
|
- name: Gather Code Coverage
|
|
uses: codecov/codecov-action@v3.1.0
|
|
with:
|
|
fail_ci_if_error: true
|