Add main readme for traces with best practices #11206
Workflow file for this run
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
name: Code Coverage | |
on: | |
push: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-test-report: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetching all | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=true | |
- name: Test | |
run: dotnet test --collect:"Code Coverage" --results-directory:"TestResults" --configuration Release --no-restore --no-build -- RunConfiguration.DisableAppDomain=true | |
- name: Install coverage tool | |
run: dotnet tool install -g dotnet-coverage | |
- name: Merging test results | |
run: dotnet-coverage merge -r -f cobertura -o ./TestResults/Cobertura.xml ./TestResults/*.coverage | |
- uses: codecov/codecov-action@v3.1.4 | |
env: | |
OS: ${{ matrix.os }} | |
with: | |
file: TestResults/Cobertura.xml | |
env_vars: OS | |
flags: unittests | |
name: Code Coverage for ${{ matrix.os }} |