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:
157
157
Write-Output "Testing the module manifest file '$moduleManifestFilePath' to ensure it is valid."
158
158
Test-ModuleManifest -Path $moduleManifestFilePath
159
159
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 ."
161
161
Copy-Item -Path $moduleDirectoryPath -Destination $moduleArtifactDirectoryPath -Exclude '*.Tests.ps1' -Recurse -Force
162
162
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
+
163
168
- name : Create deploy files artifact
164
169
shell : pwsh
165
170
run : |
You can’t perform that action at this time.
0 commit comments