Skip to content

Commit 21e8e29

Browse files
Try to run tests twice in parallel
1 parent 4ed4261 commit 21e8e29

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

.github/workflows/dotnet-tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

.github/workflows/dotnet.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ jobs:
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
@@ -80,4 +75,15 @@ jobs:
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,)'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,4 @@ __pycache__/
289289
/.nuget
290290
/web/.vite/
291291
/web/dist/
292+
.claude/settings.local.json

0 commit comments

Comments
 (0)