Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/cli-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
run: ((Get-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj -Raw) -Replace ">1.0.0<", ">${{ env.VERSION }}<") | Set-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj
working-directory: src

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Build with dotnet
run: dotnet build Rapicgen.sln
working-directory: src
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/production-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Install rapicgen
run: dotnet tool install --global rapicgen
Expand Down Expand Up @@ -395,6 +396,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Install rapicgen
run: dotnet tool install --global rapicgen
Expand Down Expand Up @@ -448,6 +450,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Install rapicgen
run: dotnet tool install --global rapicgen
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down Expand Up @@ -393,6 +394,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down Expand Up @@ -443,6 +445,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Update Version
run: ((Get-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj -Raw) -Replace ">1.0.0<", ">${{ env.VERSION }}<") | Set-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj
working-directory: src
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Build
run: dotnet build -c Release /p:UseSourceLink=true src/Rapicgen.sln -p:PackageVersion="${{ env.VERSION }}"
- name: Package CLI Tool
Expand Down Expand Up @@ -106,7 +110,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
dotnet-version: '10.0.x'

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down Expand Up @@ -386,6 +387,8 @@ jobs:
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down Expand Up @@ -428,6 +431,8 @@ jobs:
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x

- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/sonar-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Set up JDK 17
uses: actions/setup-java@v5
Expand All @@ -49,6 +54,11 @@ jobs:
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
Comment on lines +57 to +60
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate .NET setup step. This step is identical to the earlier setup at line 27-30 and can be removed to avoid redundancy.

Suggested change
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

Copilot uses AI. Check for mistakes.

- name: Install SonarCloud scanner
shell: powershell
run: dotnet tool update dotnet-sonarscanner --tool-path .\src\.sonar\scanner
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,18 @@ jobs:
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x

- name: Build with dotnet
run: dotnet build Rapicgen.sln
working-directory: src

- name: Core test project
run: dotnet test src/Core/ApiClientCodeGen.Core.Tests\ApiClientCodeGen.Core.Tests.csproj -f net8.0
run: dotnet test src/Core/ApiClientCodeGen.Core.Tests\ApiClientCodeGen.Core.Tests.csproj -f net10.0

- name: Core Integration Test project
run: dotnet test src/Core/ApiClientCodeGen.Core.IntegrationTests\ApiClientCodeGen.Core.IntegrationTests.csproj -f net8.0
run: dotnet test src/Core/ApiClientCodeGen.Core.IntegrationTests\ApiClientCodeGen.Core.IntegrationTests.csproj -f net10.0

vsix:

Expand All @@ -68,6 +70,19 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Setup .NET versions
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
9.0.x
10.0.x

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
dotnet-version: '10.0.x'

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:

steps:
- uses: actions/checkout@v5

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Update Version
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ All custom tools mentioned above are also implemented in a cross platform comman

### Requirements

- .NET 6.0 runtime
- .NET 10.0 runtime
- Java Runtime Environment
- NPM

Expand Down
2 changes: 1 addition & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All custom tools mentioned above are also implemented in a cross platform comman

## Requirements

- .NET 6.0 runtime
- .NET 10.0 runtime
- Java Runtime Environment
- NPM

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>Rapicgen.CLI.Tests</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CLI/ApiClientCodeGen.CLI/ApiClientCodeGen.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Authors>Christian Resma Helle</Authors>
<Product>REST API Client Code Generator CLI Tool</Product>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<LangVersion>latest</LangVersion>

<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "6.0.428",
"rollForward": "latestMajor",
"version": "10.0.100",
"rollForward": "latestMinor",
"allowPrerelease": false
}
}
Loading