File tree Expand file tree Collapse file tree 3 files changed +47
-6
lines changed
Expand file tree Collapse file tree 3 files changed +47
-6
lines changed Original file line number Diff line number Diff line change 1+ name : .NET Tests
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ runs-on :
7+ required : true
8+ type : string
9+ vs-version :
10+ required : true
11+ type : string
12+
13+ jobs :
14+ test :
15+ runs-on : ${{ inputs.runs-on }}
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v4
22+ with :
23+ dotnet-version : 10.0.x
24+
25+ - name : Add msbuild to PATH
26+ uses : microsoft/setup-msbuild@v2
27+ with :
28+ vs-version : ${{ inputs.vs-version }}
29+
30+ - name : Build
31+ run : dotnet build DotNetBuildable.slnf /p:Configuration=Release
32+
33+ - name : Execute unit tests
34+ run : dotnet test Tests/bin/Release/ICSharpCode.CodeConverter.Tests.dll
Original file line number Diff line number Diff line change 4646 - name : MSBuild Vsix
4747 run : msbuild Vsix\Vsix.csproj -restore /p:Configuration=$env:BuildTarget
4848
49- - name : Execute unit tests
50- run : dotnet test $env:Tests1
51- env :
52- Tests1 : Tests/bin/${{ env.BuildTarget }}/ICSharpCode.CodeConverter.Tests.dll
53-
5449 - name : Run vitest
5550 working-directory : Web
5651 run : npm test -- --run
8075 with :
8176 name : ICSharpCode.CodeConverter.Func.${{ env.BuildVersion }}.zip
8277 path : Func/bin/${{ env.BuildTarget }}/publish/
83-
78+
79+ test-vs2022 :
80+ uses : ./.github/workflows/dotnet-tests.yml
81+ with :
82+ runs-on : windows-2022
83+ vs-version : ' [17.0,18.0)'
84+
85+ test-vs2026 :
86+ uses : ./.github/workflows/dotnet-tests.yml
87+ with :
88+ runs-on : windows-2025-vs2026
89+ vs-version : ' [18.0,)'
Original file line number Diff line number Diff line change @@ -289,3 +289,4 @@ __pycache__/
289289/.nuget
290290/web /.vite /
291291/web /dist /
292+ .claude /settings.local.json
You can’t perform that action at this time.
0 commit comments