Skip to content

Commit

Permalink
Added ability to skip building playground project for CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pingu2k4 committed Jul 2, 2024
1 parent 209efdd commit 6d2d2d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: dotnet restore

- name: Build
run: dotnet build -c Release --no-restore
run: dotnet build -c Release --no-restore /p:CIBuild=true

- name: Test
run: dotnet test -c Release --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PropertyGroup Condition="'$(CIBuild)' != 'true'">
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(CIBuild)' == 'true'">
<BuildProjectReferences>false</BuildProjectReferences>
</PropertyGroup>

<ItemGroup>
<None Remove="appsettings.json" />
</ItemGroup>
Expand Down

0 comments on commit 6d2d2d8

Please sign in to comment.