Skip to content

Commit c1eaa8b

Browse files
authored
chore: synced file(s) with prom-client-net/prom-client-tmpl (#169)
* add ContinuousIntegrationBuild to Directory.Build.props * add ContinuousIntegrationBuild to Directory.Build.props
1 parent 9a5c6c4 commit c1eaa8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
8.0.x
2525
2626
- name: Build
27-
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true
27+
run: dotnet build -c Release
2828

2929
- name: Run tests with Coverage
3030
run: dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover

Directory.Build.props

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<CodeAnalysisRuleSet>$(SolutionDir).ruleset</CodeAnalysisRuleSet>
2121
<NoWarn>CS1591;NETSDK1138</NoWarn>
2222
</PropertyGroup>
23+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
24+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
25+
</PropertyGroup>
2326
<ItemGroup>
2427
<None Include="$(SolutionDir)icon.png" Visible="false" Pack="true" PackagePath="" />
2528
<None Include="$(SolutionDir)README.md" Visible="false" Pack="true" PackagePath="" />

0 commit comments

Comments
 (0)