Skip to content

Update references

Update references #53

Workflow file for this run

name: Webhooks 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:
fail-fast: true
matrix:
include:
- dotnet: '6.0.x'
dotnet-framework: 'net6.0'
- dotnet: '7.0.x'
dotnet-framework: 'net7.0'
- dotnet: '8.0.x'
dotnet-framework: 'net8.0'
os: [ ubuntu-latest, 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
- name: Setup .NET ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore dependencies
run: dotnet restore
- 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
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