chore(ci-core): fixed coverage files missing issues #7
This file contains 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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: DomainVerifier CI | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'DomainVerier.sln' | |
- 'src/DomainVerifier/**' | |
- 'tests/DomainVerifier.Tests/**' | |
- '**/ci-core.yml' | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- 'DomainVerier.sln' | |
- 'src/DomainVerifier/**' | |
- 'tests/DomainVerifier.Tests/**' | |
- '**/ci-core.yml' | |
workflow_dispatch: | |
jobs: | |
compile: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install .NET SDK 8.0.x | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
working-directory: ./src/DomainVerifier | |
- name: Restore NuGet packages | |
run: dotnet build -c Release --no-restore | |
working-directory: ./src/DomainVerifier | |
test-containers: | |
needs: compile | |
name: Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
7.0.x | |
6.0.x | |
- name: Run tests | |
run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage | |
working-directory: ./tests/DomainVerifier.Tests | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: tests/DomainVerifier.Tests/coverage/**/coverage.cobertura.xml | |
badge: true | |
fail_below_min: true | |
format: markdown | |
hide_branch_rate: false | |
hide_complexity: true | |
indicators: true | |
output: both | |
thresholds: '90 100' |