Validate all .NET projects #9
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: Validate all .NET projects | |
| on: | |
| # pull_request: | |
| # branches: | |
| # - main | |
| workflow_dispatch: | |
| jobs: | |
| build-test: | |
| name: Build and test .NET projects | |
| runs-on: ubuntu-latest | |
| container: mcr.microsoft.com/dotnet/sdk:6.0 | |
| steps: | |
| - name: Check .NET version | |
| run: dotnet --version | |
| - name: Checkout source code | |
| uses: actions/checkout@v2 | |
| - name: Build project | |
| run: dotnet build | |
| - name: Run unit tests | |
| run: dotnet test --logger "console;verbosity=detailed" | |
| - name: Code Coverage Report | |
| uses: irongut/[email protected] | |
| with: | |
| filename: ./**/coverage.cobertura.xml | |
| badge: true | |
| fail_below_min: false | |
| format: markdown | |
| hide_branch_rate: false | |
| hide_complexity: true | |
| indicators: true | |
| output: both | |
| thresholds: '50 75' |