Skip to content

Bump FluentValidation from 11.8.0 to 11.8.1 (#174) #384

Bump FluentValidation from 11.8.0 to 11.8.1 (#174)

Bump FluentValidation from 11.8.0 to 11.8.1 (#174) #384

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_ARTIFACT_PATH: ${{github.workspace}}/build-artifacts
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings CodeCoverage.runsettings --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
path: ${{env.BUILD_ARTIFACT_PATH}}
coverage:
name: Process code coverage
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Download coverage reports
uses: actions/download-artifact@v3
- name: Install ReportGenerator tool
run: dotnet tool install -g dotnet-reportgenerator-globaltool
- name: Prepare coverage reports
run: reportgenerator -reports:*/coverage/*/coverage.cobertura.xml -targetdir:./ -reporttypes:Cobertura
- name: Upload coverage report
uses: codecov/[email protected]
with:
file: Cobertura.xml
fail_ci_if_error: false
- name: Save combined coverage report as artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: Cobertura.xml