Skip to content

Commit 371e4d0

Browse files
author
Alex J Lennon
committed
CI: Explicitly restore xunit before running tests
Add explicit restore step to ensure xunit is available in assets file before running tests. This ensures xunit dependencies are properly resolved and available during the build phase. Sequence: 1. Clean obj/bin 2. Explicitly restore test project (ensures xunit in assets) 3. Run tests with --no-restore (uses pre-restored dependencies) Tested locally - all 92 tests pass.
1 parent 0b0624f commit 371e4d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ jobs:
2929
- name: Clean build artifacts
3030
run: rm -rf obj bin
3131

32+
- name: Restore dependencies (explicit xunit)
33+
run: dotnet restore tests/InstDotNet.Tests.csproj
34+
3235
- name: Run Tests
33-
run: dotnet test tests/InstDotNet.Tests.csproj -c Release -p:GitCommitHash=${{ steps.git.outputs.hash }} --verbosity normal
36+
run: dotnet test tests/InstDotNet.Tests.csproj -c Release -p:GitCommitHash=${{ steps.git.outputs.hash }} --no-restore --verbosity normal
3437
continue-on-error: false
3538

3639
build:

0 commit comments

Comments
 (0)