Bump FluentValidation to 11.11.0 #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
build-test: | |
runs-on: windows-latest | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Cache NuGet packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Run tests with coverage | |
run: dotnet test --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory TestResults | |
- name: Convert coverage to lcov | |
run: | | |
dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.* | |
reportgenerator -reports:TestResults/**/coverage.cobertura.xml -targetdir:coverage -reporttypes:lcov | |
env: | |
PATH: $env:PATH:~/.dotnet/tools | |
- name: Upload coverage artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: coverage | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: TestResults | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage/lcov.info | |
fail_ci_if_error: false | |
verbose: false | |
lint-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Markdown lint | |
uses: avto-dev/markdown-lint@v1 | |
with: | |
args: README.md |