Skip to content

Commit d9b2965

Browse files
CopilotCopilot
andcommitted
ci: add explicit step to copy xunit configuration to test output
Ensure xunit.runner.json is available to xUnit during test execution by explicitly copying it after the build step. This guarantees the configuration file is in place even if MSBuild's CopyToOutputDirectory doesn't work as expected on the CI runner. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ae08089 commit d9b2965

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
- name: Build in Release mode
5757
run: dotnet build graphify-dotnet.slnx -c Release --no-restore -p:Version=${{ steps.version.outputs.version }}
5858

59+
- name: Ensure xunit configuration is in place
60+
run: cp src/tests/Graphify.Tests/xunit.runner.json src/tests/Graphify.Tests/bin/Release/net10.0/xunit.runner.json
61+
5962
- name: Run all tests
6063
run: dotnet test graphify-dotnet.slnx -c Release --no-build --verbosity normal
6164

0 commit comments

Comments
 (0)