File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,11 @@ jobs:
160160 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 'TemplateRepoFiles'
164- [string] $moduleArtifactTemplateFilesDirectoryPath = Join-Path -Path $moduleArtifactDirectoryPath -ChildPath 'TemplateRepoFiles'
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 -Container
163+ [string] $templateFilesDirectoryName = 'TemplateRepoFiles'
164+ [string] $moduleTemplateFilesDirectoryPath = Join-Path -Path $moduleDirectoryPath -ChildPath $templateFilesDirectoryName
165+ [string] $moduleArtifactTemplateFilesDirectoryPath = Join-Path -Path $moduleArtifactDirectoryPath -ChildPath $templateFilesDirectoryName
166+ Write-Output "Copying the module template repo files to the module artifact directory '$moduleArtifactTemplateFilesDirectoryPath' verbatim, to ensure test files are included."
167+ Copy-Item -Path $moduleTemplateFilesDirectoryPath -Destination $moduleArtifactTemplateFilesDirectoryPath -Recurse -Force
167168
168169 - name : Create deploy files artifact
169170 shell : pwsh
You can’t perform that action at this time.
0 commit comments