Skip to content

Commit

Permalink
Enable WinUI.SourceGenerators tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 12, 2024
1 parent c3fb505 commit 306a9a4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,24 @@ jobs:
- name: Build ComputeSharp.D2D1.WinUI.Tests
run: msbuild tests\ComputeSharp.D2D1.WinUI.Tests\ComputeSharp.D2D1.WinUI.Tests.csproj /restore -t:build /p:Configuration=Release /p:Platform=x64

# Run the D2D1 WinAppSDK unit tests with VS Test again
# Run the D2D1 WinAppSDK unit tests with VS Test
- name: Run ComputeSharp.D2D1.WinUI.Tests
run: >
$vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath;
$vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe';
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net8.0-windows10.0.22621.0\win-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe
# Build the D2D1 WinAppSDK source generators tests
- name: Build ComputeSharp.D2D1.WinUI.Tests.SourceGenerators
run: msbuild tests\ComputeSharp.D2D1.WinUI.Tests.SourceGenerators\ComputeSharp.D2D1.WinUI.Tests.SourceGenerators.csproj /restore -t:build /p:Configuration=Release /p:Platform=x64

# Run the D2D1 WinAppSDK source generators tests (same as above)
- name: Run ComputeSharp.D2D1.WinUI.SourceGenerators.Tests
run: >
$vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath;
$vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe';
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests.SourceGenerators\bin\x64\Release\net8.0-windows10.0.22621.0\ComputeSharp.D2D1.WinUI.Tests.SourceGenerators.dll
# Run all the local samples to ensure they build and run with no errors
run-samples:
needs: [build-solution]
Expand Down

0 comments on commit 306a9a4

Please sign in to comment.