Bump vite from 8.0.14 to 8.0.16 in /Backgammon.WebClient #310
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: Test & Coverage | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| test-coverage: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Run tests with coverage | |
| run: | | |
| dotnet test --no-build --configuration Release \ | |
| /p:CollectCoverage=true \ | |
| /p:CoverletOutputFormat=cobertura \ | |
| /p:Threshold=70 \ | |
| /p:ThresholdType=line,branch \ | |
| /p:Exclude="[*.Tests]*,[*]Program,[*.ServiceDefaults]*" | |
| - name: Generate coverage report | |
| if: always() | |
| run: | | |
| dotnet tool install -g dotnet-reportgenerator-globaltool | |
| reportgenerator \ | |
| -reports:"**/coverage.cobertura.xml" \ | |
| -targetdir:"coverage-report" \ | |
| -reporttypes:"Html;MarkdownSummaryGithub" | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: coverage-report/ | |
| - name: Comment PR with coverage | |
| if: github.event_name == 'pull_request' && always() | |
| uses: marocchino/sticky-pull-request-comment@v3 | |
| with: | |
| recreate: true | |
| path: coverage-report/SummaryGithub.md |