feat: add support for 'Stabilized' email notifications and enhance tr… #19
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: CI Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - enhancements | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| - enhancements | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-build-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET 8 SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore ApiHealthDashboard.sln | |
| - name: Build solution | |
| run: dotnet build ApiHealthDashboard.sln -c Release --no-restore | |
| - name: Run tests | |
| run: dotnet test ApiHealthDashboard.sln -c Release --no-build --logger "trx;LogFileName=test-results.trx" --results-directory ./TestResults | |
| - name: Upload test results | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: TestResults/**/*.trx | |
| if-no-files-found: warn |