Skip to content

Commit 61b5ed7

Browse files
authored
V10.1.0/xunitv3 troubleshooting (#135)
🐛 fix linux test apphost permissions for xunit v3
1 parent 2b046e9 commit 61b5ed7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,17 @@ jobs:
131131
pattern: '*-${{ matrix.configuration }}'
132132
merge-multiple: true
133133

134+
- name: Fix Linux test apphost permissions
135+
run: |
136+
echo "Ensuring xUnit v3 test apphosts are executable on Linux..."
137+
echo "Configuration: ${{ matrix.configuration }}"
138+
# Dump a bit of info for debugging
139+
find . -path "*/bin/${{ matrix.configuration }}/net*/*" -maxdepth 1 -type f -name "*Tests*" -print || true
140+
# Actually fix permissions
141+
find . -path "*/bin/${{ matrix.configuration }}/net*/*" -type f -name "*Tests*" -exec chmod +x {} +
142+
echo "Permissions fixed."
143+
shell: bash
144+
134145
- name: Test with ${{ matrix.configuration }} build
135146
uses: codebeltnet/dotnet-test@v4
136147
with:

Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@
111111

112112
<PropertyGroup Condition="'$(IsBenchmarkProject)' == 'true'">
113113
<TargetFrameworks>net10.0;net9.0</TargetFrameworks>
114+
<TargetFrameworks>net10.0;net9.0</TargetFrameworks>
115+
<IsPackable>false</IsPackable>
116+
<RunAnalyzers>false</RunAnalyzers>
117+
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
118+
<RunAnalyzersDuringLiveAnalysis>false</RunAnalyzersDuringLiveAnalysis>
119+
<SonarQubeExclude>true</SonarQubeExclude>
120+
<AnalysisLevel>none</AnalysisLevel>
121+
<NoWarn>NU1701,NU1902,NU1903</NoWarn>
122+
<CheckEolTargetFramework>false</CheckEolTargetFramework>
123+
<NuGetAudit>false</NuGetAudit>
114124
</PropertyGroup>
115125

116126
<ItemGroup Condition="'$(IsBenchmarkProject)' == 'true'">

0 commit comments

Comments
 (0)