Enhance release changelog generation and categorization in NuGet release workflow #14
Workflow file for this run
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: PR Unit Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| test-gate: | |
| name: PR Test Gate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| cache: true | |
| cache-dependency-path: | | |
| FluentAAS/**/*.csproj | |
| FluentAAS/global.json | |
| - name: Locate solution file | |
| id: solution | |
| shell: bash | |
| run: | | |
| SOLUTION=$(find . -maxdepth 5 -name "*.sln" | head -n 1) | |
| if [ -z "$SOLUTION" ]; then | |
| echo "❌ No solution file (*.sln) found in the repo." | |
| exit 1 | |
| fi | |
| echo "SOLUTION_PATH=$SOLUTION" >> $GITHUB_OUTPUT | |
| echo "✅ Found solution: $SOLUTION" | |
| - name: Restore dependencies | |
| run: dotnet restore "${{ steps.solution.outputs.SOLUTION_PATH }}" | |
| - name: Build solution | |
| run: dotnet build "${{ steps.solution.outputs.SOLUTION_PATH }}" -c Release --no-restore | |
| # Blocking PR gate: reviewers can see this check and it must pass before merge. | |
| - name: Run unit tests (blocking gate) | |
| run: dotnet test "${{ steps.solution.outputs.SOLUTION_PATH }}" -c Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" | |
| - name: Upload test result artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pr-test-results | |
| path: | | |
| **/TestResults/*.trx | |
| **/test-results.trx |