File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,14 @@ jobs:
157157 Write-Output "Testing the module manifest file '$moduleManifestFilePath' to ensure it is valid."
158158 Test-ModuleManifest -Path $moduleManifestFilePath
159159
160- Write-Output "Copying the module files to the module artifact directory '$moduleArtifactDirectoryPath'."
160+ Write-Output "Copying the module files to the module artifact directory '$moduleArtifactDirectoryPath', excluding tests ."
161161 Copy-Item -Path $moduleDirectoryPath -Destination $moduleArtifactDirectoryPath -Exclude '*.Tests.ps1' -Recurse -Force
162162
163+ [string] $moduleTemplateFilesDirectoryPath = Join-Path -Path $moduleDirectoryPath -ChildPath 'TemplateFiles'
164+ [string] $moduleArtifactTemplateFilesDirectoryPath = Join-Path -Path $moduleArtifactDirectoryPath -ChildPath 'TemplateFiles'
165+ Write-Output "Copying the module template test files to the module artifact directory '$moduleArtifactTemplateFilesDirectoryPath'."
166+ Copy-Item -Path $moduleTemplateFilesDirectoryPath -Destination $moduleArtifactTemplateFilesDirectoryPath -Include '*.Tests.ps1' -Recurse -Force
167+
163168 - name : Create deploy files artifact
164169 shell : pwsh
165170 run : |
You can’t perform that action at this time.
0 commit comments