Skip to content

Commit 1dae2aa

Browse files
committed
ci: Trying to fix build artifacts
1 parent eb4ba89 commit 1dae2aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build-and-test-powershell-module.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)