General documentation update #16
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: Messaging PR Build | |
| permissions: | |
| contents: read | |
| packages: read | |
| on: | |
| pull_request: | |
| branches: [ main, develop ] | |
| env: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_NOLOGO: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| jobs: | |
| build: | |
| name: "Build and Test" | |
| strategy: | |
| matrix: | |
| include: | |
| - dotnet: '8.0.x' | |
| dotnet-framework: 'net8.0' | |
| os: ubuntu-latest | |
| - dotnet: '8.0.x' | |
| dotnet-framework: 'net8.0' | |
| os: windows-latest | |
| - dotnet: '9.0.x' | |
| dotnet-framework: 'net9.0' | |
| os: ubuntu-latest | |
| - dotnet: '9.0.x' | |
| dotnet-framework: 'net9.0' | |
| os: windows-latest | |
| runs-on: ${{ matrix.os }} | |
| outputs: | |
| version: ${{ steps.gitversion.outputs.SemVer }} | |
| nuget-version: ${{ steps.gitversion.outputs.NuGetVersion }} | |
| assembly-version: ${{ steps.gitversion.outputs.AssemblySemVer }} | |
| file-version: ${{ steps.gitversion.outputs.AssemblySemFileVer }} | |
| informational-version: ${{ steps.gitversion.outputs.InformationalVersion }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/setup@v4.0.1 | |
| with: | |
| versionSpec: '6.x' | |
| - name: Determine Version | |
| id: gitversion | |
| uses: gittools/actions/gitversion/execute@v4.0.1 | |
| - name: Display GitVersion outputs | |
| run: | | |
| echo "Version: ${{ steps.gitversion.outputs.SemVer }}" | |
| echo "NuGet Version: ${{ steps.gitversion.outputs.NuGetVersion }}" | |
| echo "Assembly Version: ${{ steps.gitversion.outputs.AssemblySemVer }}" | |
| echo "File Version: ${{ steps.gitversion.outputs.AssemblySemFileVer }}" | |
| echo "Informational Version: ${{ steps.gitversion.outputs.InformationalVersion }}" | |
| - name: Setup .NET ${{ matrix.dotnet }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet }} | |
| env: | |
| GitVersion_SemVer: ${{ steps.gitversion.outputs.SemVer }} | |
| GitVersion_AssemblySemVer: ${{ steps.gitversion.outputs.AssemblySemVer }} | |
| GitVersion_AssemblySemFileVer: ${{ steps.gitversion.outputs.AssemblySemFileVer }} | |
| GitVersion_InformationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }} | |
| GitVersion_NuGetVersion: ${{ steps.gitversion.outputs.NuGetVersion }} | |
| - name: Restore dependencies | |
| run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-framework }} | |
| - name: Build | |
| run: dotnet build --no-restore -c Release -f ${{ matrix.dotnet-framework }} | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal -c Release -f ${{ matrix.dotnet-framework }} | |
| summary: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - name: PR Build Summary | |
| run: | | |
| echo "## 🔍 Pull Request Build Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "| Property | Value |" >> $GITHUB_STEP_SUMMARY | |
| echo "|----------|-------|" >> $GITHUB_STEP_SUMMARY | |
| echo "| PR Number | #${{ github.event.number }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Source Branch | \`${{ github.head_ref }}\` |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Target Branch | \`${{ github.base_ref }}\` |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Build Status | ${{ needs.build.result == 'success' && '✅ Success' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Coverage | ${{ needs.build.result == 'success' && '📊 Collected' || '❌ Not Available' }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ needs.build.result }}" == "success" ]; then | |
| echo "✅ **Build Successful**: All tests passed and code coverage was collected." >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "📋 **Test Execution Notes**:" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Ubuntu**: All tests executed" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "❌ **Build Failed**: Please check the build logs for more details." >> $GITHUB_STEP_SUMMARY | |
| fi | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "📝 **Note**: This is a PR build - no packages are published." >> $GITHUB_STEP_SUMMARY |