diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb03e4cc..71f0138b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,9 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.0' + dotnet-version: | + 8.0.x + 9.0.x - name: ๐Ÿ› ๏ธ Prepare continue-on-error: true run: | diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 180d4734..ac62aeae 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -31,7 +31,13 @@ jobs: steps: - name: ๐Ÿ›’ Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x - name: ๐Ÿงช Test run: dotnet test src/Refitter.Tests/Refitter.Tests.csproj -c Release --collect "Code coverage" -p:UseSourceLink=true -p:PackageVersion="${{ env.VERSION }}" diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 505037a5..27dc52dd 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -26,6 +26,11 @@ jobs: steps: - name: ๐Ÿ›’ Checkout repository uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x - name: ๐Ÿ› ๏ธ Prepare working-directory: test/MSBuild run: | diff --git a/.github/workflows/release-template.yml b/.github/workflows/release-template.yml index 20afb79e..684b4352 100644 --- a/.github/workflows/release-template.yml +++ b/.github/workflows/release-template.yml @@ -22,6 +22,11 @@ jobs: uses: dotnet/nbgv@master with: setAllVars: true + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x - name: Build run: | dotnet build -c Release src/Refitter.sln -p:UseSourceLink=true -p:PackageVersion="${{ inputs.version }}" -p:Version="${{ inputs.version }}" diff --git a/src/Refitter/Refitter.csproj b/src/Refitter/Refitter.csproj index 27ce6398..424ec548 100644 --- a/src/Refitter/Refitter.csproj +++ b/src/Refitter/Refitter.csproj @@ -9,7 +9,7 @@ Refit API Client Code Generator Refitter is a CLI tool for generating a C# REST API Client using the Refit library from OpenAPI specifications. true - net8.0 + net8.0;net9.0