Skip to content

Commit 00520d5

Browse files
committed
GitHub Actions: Skip StyleCop in the unit test job
see 69b923a, 79b511c
1 parent b103d5a commit 00520d5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
dotnet-version: "8"
4444

4545
- name: Test
46-
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
46+
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true -p:RunStyleCop=false
4747
shell: pwsh
4848

4949
package:

Common.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
<PropertyGroup Condition=" '$(MachineExtraCompilationFlag)' != '' ">
3636
<DefineConstants>$(DefineConstants);$(MachineExtraCompilationFlag)</DefineConstants>
3737
</PropertyGroup>
38-
<ItemGroup Condition=" '$(RunStyleCop)' != '' OR '$(ContinuousIntegrationBuild)' != '' ">
38+
<PropertyGroup Condition=" '$(RunStyleCop)' == '' AND '$(ContinuousIntegrationBuild)' != '' AND '$(ContinuousIntegrationBuild)' != 'false' ">
39+
<RunStyleCop>true</RunStyleCop>
40+
</PropertyGroup>
41+
<ItemGroup Condition=" '$(RunStyleCop)' != '' and '$(RunStyleCop)' != 'false' ">
3942
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="all" />
4043
</ItemGroup>
4144
<ItemGroup>

0 commit comments

Comments
 (0)