Skip to content

5.3 in stable

5.3 in stable #18

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Install dependencies
run: dotnet restore
- name: Check vulnerable NuGet packages
uses: elmahio/github-check-vulnerable-nuget-packages-action@v2
with:
projects: |
src/Elmah.Io.Client.Extensions.Correlation/Elmah.Io.Client.Extensions.Correlation.csproj
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore
- name: Pack
run: dotnet pack --configuration Release /p:Version=5.3.${{ github.run_number }}
- name: Install dotnet-validate
run: dotnet tool install --global dotnet-validate --version 0.0.1-preview.537
- name: Validate
run: dotnet-validate package local src/Elmah.Io.Client.Extensions.Correlation/bin/Release/Elmah.Io.Client.Extensions.Correlation.5.3.${{ github.run_number }}.nupkg
- name: Push
run: dotnet nuget push src/Elmah.Io.Client.Extensions.Correlation/bin/Release/Elmah.Io.Client.Extensions.Correlation.5.3.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
if: ${{ github.event_name == 'push' }}
- name: Refresh Bugster
shell: pwsh
env:
FUNCTION_APP_URL: ${{ secrets.FUNCTION_APP_URL }}
run: |
$repoName = ($env:GITHUB_REPOSITORY -split '/')[1]
$json = @{ repository = $repoName } | ConvertTo-Json -Compress
curl --fail-with-body -X POST `
-H "Content-Type: application/json" `
-d "$json" `
$env:FUNCTION_APP_URL
if: ${{ github.event_name == 'push' }}