Files
NordigenDotNet/.github/workflows/test.yml
T
dependabot[bot] a4bd54da90 build(deps): Bump actions/setup-dotnet from 3.0.0 to 3.0.1
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-06 19:23:56 +03:00

64 lines
1.4 KiB
YAML

name: Run tests
on:
schedule:
- cron: "0 0 * * 1-5"
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-dotnet@v3.0.1
- run: dotnet restore
- name: Build
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
env:
Nordigen__SecretId: ${{ secrets.NORDIGEN_SECRET_ID }}
Nordigen__SecretKey: ${{ secrets.NORDIGEN_SECRET_KEY }}
- name: ReSharper annotations
uses: VMelnalksnis/resharper-inspect-action@v0.2.3
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:
fail_ci_if_error: true