Skip to content

Commit fc3462b

Browse files
committed
Try to fix path problems so we test the right module
1 parent 975a7ab commit fc3462b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
with:
6868
name: ModuleBuilder
6969
path: Modules/ModuleBuilder
70+
- name: Put ModuleBuilder in PATH
71+
shell: pwsh
72+
run: Add-Content -Path $env:GITHUB_PATH -Value (Convert-Path Modules/ModuleBuilder) -Encoding utf8
7073
- name: Download Pester Tests
7174
uses: actions/download-artifact@v4
7275
with:

Tests/Integration/Parameters.Tests.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ Describe "Parameters" -Tag Integration {
99
}
1010
# Throw in an extra file that would get cleaned up normally ...
1111
New-Item $PSScriptRoot/Result3/Parameters/3.0.0/DeleteMe.md -ItemType File -Force
12+
13+
Write-Host "Module Under Test:"
14+
Get-Command Build-Module
15+
| Get-Module -Name { $_.Source }
16+
| Get-Item
17+
| Out-Host
1218
}
1319

1420
It "Passthru is read from the build manifest" {
15-
$Output = Build-Module (Convert-FolderSeparator "$PSScriptRoot/Parameters/build.psd1") -Verbose
21+
Build-Module (Convert-FolderSeparator "$PSScriptRoot/Parameters/build.psd1") -Verbose -OutVariable Output
22+
| Out-Host
23+
1624
$Output | Should -Not -BeNullOrEmpty
1725
$Output.Path | Convert-FolderSeparator | Should -Be (Convert-FolderSeparator "$PSScriptRoot/Result3/Parameters/3.0.0/Parameters.psd1")
1826
}

0 commit comments

Comments
 (0)