Skip to content

Commit bc5d98c

Browse files
committed
fix: 🐛 Test if github action in build.tests.ps1 is resolved
1 parent 4ebdcfb commit bc5d98c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/build.tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Describe 'Build' {
55
# Hack for GH Actions
66
# For some reason, the TestModule build process create the output in the project root
77
# and not relative to it's own build file.
8-
if ($env:GITHUB_ACTION) {
9-
$script:testModuleOutputPath = [IO.Path]::Combine($env:BHProjectPath, 'Output', 'TestModule', '0.1.0')
10-
} else {
11-
$script:testModuleOutputPath = [IO.Path]::Combine($env:BHProjectPath, 'tests', 'TestModule', 'Output', 'TestModule', '0.1.0')
12-
}
8+
#if ($env:GITHUB_ACTION) {
9+
$script:testModuleOutputPath = [IO.Path]::Combine($env:BHProjectPath, 'Output', 'TestModule', '0.1.0')
10+
#} else {
11+
$script:testModuleOutputPath = [IO.Path]::Combine($env:BHProjectPath, 'tests', 'TestModule', 'Output', 'TestModule', '0.1.0')
12+
#}
1313
}
1414

1515
Context 'Compile module' {
@@ -19,7 +19,7 @@ Describe 'Build' {
1919
Write-Host "OutputPath: $script:testModuleOutputPath"
2020

2121
# build is PS job so psake doesn't freak out because it's nested
22-
Start-Job -Scriptblock {
22+
Start-Job -ScriptBlock {
2323
Set-Location $using:PSScriptRoot/TestModule
2424
$global:PSBuildCompile = $true
2525
./build.ps1 -Task Build
@@ -71,7 +71,7 @@ Describe 'Build' {
7171
Context 'Dot-sourced module' {
7272
BeforeAll {
7373
# build is PS job so psake doesn't freak out because it's nested
74-
Start-Job -Scriptblock {
74+
Start-Job -ScriptBlock {
7575
Set-Location $using:PSScriptRoot/TestModule
7676
$global:PSBuildCompile = $false
7777
./build.ps1 -Task Build

0 commit comments

Comments
 (0)