From 5d4efcd794113701ded46c5a179eb3e1d4fbe9c7 Mon Sep 17 00:00:00 2001 From: DevTKSS Date: Wed, 19 Nov 2025 15:51:53 +0100 Subject: [PATCH] ci(deps): update github actions "setup-dotnet" and "checkout" to v5 chore: use matrix syntax for dotnet version of CI The second Step (Publish) could also use dotnet.matrix, not implemented until now, because it could be possible that building to net8.0 has a specific reason like keeping the backwards compartiblity --- .github/workflows/build.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 648ea8f..39bd815 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,22 +10,21 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + dotnet: [ '8.x' , '9.x' ] + name: Dotnet ${{ matrix.dotnet }} Build and Test steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v5 with: fetch-depth: 0 # Need full history for GitVersion - - name: Setup .NET 8.0 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '8.0' - - - name: Setup .NET 9.0 - uses: actions/setup-dotnet@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v5 with: - dotnet-version: '9.0' + dotnet-version: ${{ matrix.dotnet }} - name: Build run: dotnet build Yllibed.HttpServer.slnx /p:Configuration=Release @@ -62,9 +61,9 @@ jobs: path: ./nuget-packages - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v5 with: - dotnet-version: '8.0' + dotnet-version: '8.x' - name: Push NuGet packages env: