From 85d01a8de8597d989d32671e76a3c8806d8f987e Mon Sep 17 00:00:00 2001 From: Erwin Date: Tue, 5 May 2026 21:37:01 +0200 Subject: [PATCH] formatting .github files and move to ubuntu 24.x Signed-off-by: Erwin --- .github/dependabot.yaml | 2 +- .github/workflows/build.yml | 40 ++++++++++++++++---------------- .github/workflows/nuget.yml | 46 ++++++++++++++++++------------------- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 78e2565..2df8690 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -15,7 +15,7 @@ updates: - "*" ignore: - dependency-name: "*" - update-types: ["version-update:semver-major"] + update-types: [ "version-update:semver-major" ] - package-ecosystem: github-actions directory: / schedule: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56d50c4..aa02fe7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,34 +3,34 @@ name: Build on: push: branches: - - main + - main pull_request: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: DOTNET_NOLOGO: true steps: - - name: Check out our repo - uses: actions/checkout@v6 - with: - submodules: true + - name: Check out our repo + uses: actions/checkout@v6 + with: + submodules: true - # Build with .NET 10.0 SDK - # Test with .NET 8.0 and 10.0 - - name: Setup .NET 8.0 and 10.0 - uses: actions/setup-dotnet@v5.2.0 - with: - dotnet-version: | - 8.0.x - 10.0.x + # Build with .NET 10.0 SDK + # Test with .NET 8.0 and 10.0 + - name: Setup .NET 8.0 and 10.0 + uses: actions/setup-dotnet@v5.2.0 + with: + dotnet-version: | + 8.0.x + 10.0.x - - name: Build - run: | - dotnet build - dotnet test - # Pack production packages to validate compatibility - dotnet pack -p:ContinuousIntegrationBuild=true + - name: Build + run: | + dotnet build + dotnet test + # Pack production packages to validate compatibility + dotnet pack -p:ContinuousIntegrationBuild=true diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index d6e0f14..3d16c7f 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -2,37 +2,37 @@ name: Push packages to NuGet on: release: - types: [published] + types: [ published ] jobs: release: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: DOTNET_NOLOGO: true steps: - - name: Check out our repo - uses: actions/checkout@v6 - with: - submodules: true + - name: Check out our repo + uses: actions/checkout@v6 + with: + submodules: true - # Build with .NET 10.0 SDK - # Test with .NET 8.0 and 10.0 - - name: Setup .NET 8.0 and 10.0 - uses: actions/setup-dotnet@v5.2.0 - with: - dotnet-version: | - 8.0.x - 10.0.x + # Build with .NET 10.0 SDK + # Test with .NET 8.0 and 10.0 + - name: Setup .NET 8.0 and 10.0 + uses: actions/setup-dotnet@v5.2.0 + with: + dotnet-version: | + 8.0.x + 10.0.x - - name: Build - run: | - dotnet build -c Release -p:ContinuousIntegrationBuild=true - dotnet test -c Release - mkdir nuget + - name: Build + run: | + dotnet build -c Release -p:ContinuousIntegrationBuild=true + dotnet test -c Release + mkdir nuget - - name: Push to NuGet - run: | - dotnet pack -c Release -p:ContinuousIntegrationBuild=true -o $PWD/nuget - for file in nuget/*.nupkg; do dotnet nuget push -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} $file; done + - name: Push to NuGet + run: | + dotnet pack -c Release -p:ContinuousIntegrationBuild=true -o $PWD/nuget + for file in nuget/*.nupkg; do dotnet nuget push -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} $file; done