Skip to content

Commit 36e0f1a

Browse files
committed
feat(button): add to msbuild with params
1 parent 5ee0f4a commit 36e0f1a

File tree

2 files changed

+55
-4
lines changed

2 files changed

+55
-4
lines changed

.github/workflows/reuseable-ci-checks.yml

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,20 @@ jobs:
233233
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
234234
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
235235
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
236-
/p:HeadlessTesting=$HEADLESS_TESTING
236+
/p:HeadlessTesting=$HEADLESS_TESTING \
237+
/p:CollectCoverage=true \
238+
/p:CoverletOutputFormat=cobertura \
239+
/p:Threshold=50 \
240+
/p:ThresholdType=line \
241+
/p:ThresholdStat=total \
242+
/p:ThresholdBranch=50 \
243+
/p:ThresholdMethod=50 \
244+
/p:Include="[TELBlazor.Components]*" \
245+
/p:ExcludeByAttribute=ExcludeFromCodeCoverage \
246+
/p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
247+
/p:IncludeTestAssembly=true \
248+
/p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
249+
/p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
237250
238251
- name: Build solution without generating new package
239252
env:
@@ -247,7 +260,20 @@ jobs:
247260
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
248261
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
249262
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
250-
/p:HeadlessTesting=$HEADLESS_TESTING
263+
/p:HeadlessTesting=$HEADLESS_TESTING \
264+
/p:CollectCoverage=true \
265+
/p:CoverletOutputFormat=cobertura \
266+
/p:Threshold=50 \
267+
/p:ThresholdType=line \
268+
/p:ThresholdStat=total \
269+
/p:ThresholdBranch=50 \
270+
/p:ThresholdMethod=50 \
271+
/p:Include="[TELBlazor.Components]*" \
272+
/p:ExcludeByAttribute=ExcludeFromCodeCoverage \
273+
/p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
274+
/p:IncludeTestAssembly=true \
275+
/p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
276+
/p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
251277
252278
- name: Ensure browsers are installed
253279
run: pwsh TELBlazor.Components.ShowCase.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps
@@ -263,7 +289,27 @@ jobs:
263289
E2ETracingEnabled: ${{ env.E2E_TRACING_ENABLED }}
264290
HeadlessTesting: ${{ env.HEADLESS_TESTING }}
265291
run: |
266-
dotnet test --no-build --no-restore
292+
dotnet test --no-build --no-restore \
293+
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
294+
/p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
295+
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
296+
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
297+
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
298+
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
299+
/p:HeadlessTesting=$HEADLESS_TESTING \
300+
/p:CollectCoverage=true \
301+
/p:CoverletOutputFormat=cobertura \
302+
/p:Threshold=50 \
303+
/p:ThresholdType=line \
304+
/p:ThresholdStat=total \
305+
/p:ThresholdBranch=50 \
306+
/p:ThresholdMethod=50 \
307+
/p:Include="[TELBlazor.Components]*" \
308+
/p:ExcludeByAttribute=ExcludeFromCodeCoverage \
309+
/p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
310+
/p:IncludeTestAssembly=true \
311+
/p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
312+
/p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
267313
continue-on-error: true
268314

269315

Directory.Build.props

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@
1818
<Message Importance="High" Text="MSBuildProjectDirectory = '$(MSBuildProjectDirectory)'" />
1919
</Target>
2020
<PropertyGroup>
21-
<DebugType>full</DebugType>
21+
<!-- Symbol and Debug Settings qqqq skeptical -->
22+
<DebugType>portable</DebugType>
2223
<DebugSymbols>true</DebugSymbols>
24+
<EmbedAllSources>true</EmbedAllSources>
25+
<IncludeSymbols>true</IncludeSymbols>
26+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
27+
2328
<!-- coverlet.msbuild, specifically msbuild props -->
2429
<CollectCoverage>true</CollectCoverage>
2530
<CoverletOutputFormat>cobertura</CoverletOutputFormat>

0 commit comments

Comments
 (0)