Closed raandree closed 1 year ago
Merging #403 (5f76925) into main (5d3f4ed) will increase coverage by
0%
. The diff coverage is93%
.
@@ Coverage Diff @@
## main #403 +/- ##
===================================
Coverage 81% 81%
===================================
Files 41 42 +1
Lines 2225 2244 +19
===================================
+ Hits 1807 1826 +19
Misses 418 418
Impacted Files | Coverage Δ | |
---|---|---|
.build/tasks/Build-Module.ModuleBuilder.build.ps1 | 90% <90%> (+<1%) |
:arrow_up: |
Sampler/Public/Get-Psm1SchemaName.ps1 | 100% <100%> (ø) |
Pull Request
Pull Request (PR) description
The task
Build_DscResourcesToExport_ModuleBuilder
did not properly look for DSC MOF-based resources and DSC composite resources. It usesGet-ChildItem -Include '*.schema.mof' -File
which in some cases returns more than just*.schema.mof
files.https://github.com/gaelcolas/Sampler/blob/0df39036bac42ecdf15ed956d8bc5e3fc30995c7/.build/tasks/Build-Module.ModuleBuilder.build.ps1#L359
Discovering the name of DSC composite resources must be done differently, hence a Get-Psm1SchemaName.ps1 was added.
The changes of this PR mainly add support for DSC composite resources.
Fixed
402: Using parameter
Filter
instead ofInclude
to get MOF files.Added
Task list
build.ps1 -ResolveDependency
).This change is