diff --git a/.github/workflows/build-and-test-powershell-module.yml b/.github/workflows/build-and-test-powershell-module.yml index 59eb7da..6856a03 100644 --- a/.github/workflows/build-and-test-powershell-module.yml +++ b/.github/workflows/build-and-test-powershell-module.yml @@ -160,6 +160,10 @@ jobs: Write-Output "Copying the module files to the module artifact directory '$moduleArtifactDirectoryPath'." Copy-Item -Path $moduleDirectoryPath -Destination $moduleArtifactDirectoryPath -Exclude '*.Tests.ps1' -Recurse -Force + [string] $moduleTemplateRepoFilesDirectoryPath = Join-Path -Path $moduleDirectoryPath -ChildPath 'TemplateRepoFiles' + Write-Output "Copying the module template repo files '$moduleTemplateRepoFilesDirectoryPath' to the module artifact directory '$moduleArtifactDirectoryPath' verbatim, to ensure test files are included." + Copy-Item -Path $moduleTemplateRepoFilesDirectoryPath -Destination $moduleArtifactDirectoryPath -Recurse -Force + - name: Create deploy files artifact shell: pwsh run: | diff --git a/deploy/Invoke-SmokeTests.ps1 b/deploy/Invoke-SmokeTests.ps1 index d0fab9c..e896882 100644 --- a/deploy/Invoke-SmokeTests.ps1 +++ b/deploy/Invoke-SmokeTests.ps1 @@ -26,12 +26,7 @@ Describe 'New-PowerShellScriptModuleRepository' { $expectedModuleTestsFilePath = Join-Path -Path $expectedModuleDirectoryPath -ChildPath "$moduleName.Tests.ps1" # Act. - New-PowerShellScriptModuleRepository -RepositoryDirectoryPath $repositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName -Verbose - - Write-Verbose "Module directory path: $repositoryDirectoryPath" -Verbose - $paths = Get-ChildItem -Path $repositoryDirectoryPath -Recurse | - Select-Object -ExpandProperty FullName - Write-Verbose "Paths: $paths" -Verbose + New-PowerShellScriptModuleRepository -RepositoryDirectoryPath $repositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName # Assert. $expectedModuleDirectoryPath | Should -Exist