Merge pull request #10 from dozer75/add-additional-headers-support #7
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: Push - master | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/**' | |
| - '.editorconfig' | |
| - '.gitignore' | |
| - '.gitattributes' | |
| - 'CONTRIBUTING.md' | |
| - 'LICENSE.txt' | |
| - 'NuGet.config' | |
| - 'README.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 9.0.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Restore solution | |
| run: dotnet restore | |
| - name: Build solution | |
| run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true | |
| - name: Test solution | |
| run: dotnet test --configuration Release --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:UseSourceLink=true -p:CoverletOutput=../../coverage/ | |
| - name: Create code coverage summary | |
| uses: irongut/[email protected] | |
| with: | |
| filename: ./coverage/*.xml | |
| badge: true | |
| fail_below_min: true | |
| format: markdown | |
| hide_branch_rate: false | |
| hide_complexity: false | |
| indicators: true | |
| output: both | |
| thresholds: '90 95' | |
| - name: Create code coverage HTML report | |
| uses: danielpalme/[email protected] | |
| with: | |
| reports: ./coverage/*.xml | |
| targetdir: report | |
| reporttypes: HtmlInline | |
| - name: Upload code coverage HTML report as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CodeCoverageReport | |
| path: report | |
| - name: Add code coverage summary to job summary | |
| run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY |