From 73561e88883f2a2cacca617a38d8e2555f34942e Mon Sep 17 00:00:00 2001 From: Jonathan Giannuzzi Date: Wed, 13 Nov 2024 09:56:00 -0700 Subject: [PATCH] Update CI, .NET SDK, and .NET tools --- .config/dotnet-tools.json | 5 +++-- .github/dependabot.yml | 4 ++++ .github/workflows/ci.yml | 28 ++++++++++++++-------------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 59785a9..7fbe0aa 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,11 @@ "isRoot": true, "tools": { "dotnet-format": { - "version": "5.0.211103", + "version": "5.1.250801", "commands": [ "dotnet-format" - ] + ], + "rollForward": false } } } \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bc18f00..c923fc4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a8a6bb..76751de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,36 +9,36 @@ jobs: # Enforces the consistency of code formatting using `.editorconfig` and the `dotnet-format` tool. check-format: if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.201 + dotnet-version: 8.0.404 - name: Pin .NET Core SDK - run: dotnet new globaljson --sdk-version 5.0.201 + run: dotnet new globaljson --sdk-version 8.0.404 - name: Restore tools run: dotnet tool restore - name: Check format - run: dotnet format --check --folder T4.Build + run: dotnet tool run dotnet-format --check --folder T4.Build build: if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.201 + dotnet-version: 8.0.404 - name: Pin .NET Core SDK - run: dotnet new globaljson --sdk-version 5.0.201 + run: dotnet new globaljson --sdk-version 8.0.404 - name: Create package shell: pwsh run: | @@ -55,7 +55,7 @@ jobs: } dotnet pack --configuration=Release @params - name: Upload NuGet package artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: nuget-package path: T4.Build/bin/Release/T4.Build.*.nupkg @@ -63,10 +63,10 @@ jobs: publish: if: startsWith(github.ref, 'refs/tags/v') needs: [check-format, build] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Download NuGet package artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: nuget-package - name: Publish to NuGet