Get rid of nested archive #4

Merged
maxim-lobanov merged 9 commits from v-malob/switch-layout into master 2020-04-23 13:54:32 +05:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 8153747322 - Show all commits

View File

@@ -44,7 +44,6 @@ class WinNodeBuilder : NodeBuilder {
$extractTargetDirectory = Join-Path $this.TempFolderLocation "tempExtract" $extractTargetDirectory = Join-Path $this.TempFolderLocation "tempExtract"
Extract-7ZipArchive -ArchivePath $archivePath -OutputDirectory $extractTargetDirectory Extract-7ZipArchive -ArchivePath $archivePath -OutputDirectory $extractTargetDirectory
$nodeOutputPath = Get-Item $extractTargetDirectory\* | Select-Object -First 1 -ExpandProperty Fullname $nodeOutputPath = Get-Item $extractTargetDirectory\* | Select-Object -First 1 -ExpandProperty Fullname
Write-Host $nodeOutputPath
Move-Item -Path $nodeOutputPath\* -Destination $this.ArtifactLocation Move-Item -Path $nodeOutputPath\* -Destination $this.ArtifactLocation
} }

View File

@@ -20,6 +20,11 @@ Describe "Node.js" {
"node --version" | Should -ReturnZeroExitCode "node --version" | Should -ReturnZeroExitCode
} }
It "version is correct" {
$versionOutput = Invoke-Expression "node --version"
$versionOutput | Should -Match $Version
}
It "is used from tool-cache" { It "is used from tool-cache" {
$nodePath = (Get-Command "node").Path $nodePath = (Get-Command "node").Path
$nodePath | Should -Not -BeNullOrEmpty $nodePath | Should -Not -BeNullOrEmpty