mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Fix not being able to find CodeQL.
This commit is contained in:
@@ -19,5 +19,4 @@ $UnGzipedCodeQLBundlePath = Join-Path $DownloadDirectoryPath "codeql-bundle.tar"
|
|||||||
Extract-7Zip -Path $UnGzipedCodeQLBundlePath -DestinationPath $ExtractionDirectory
|
Extract-7Zip -Path $UnGzipedCodeQLBundlePath -DestinationPath $ExtractionDirectory
|
||||||
|
|
||||||
# Test that the tool has been extracted successfully.
|
# Test that the tool has been extracted successfully.
|
||||||
$Env:CODEQL_EXTRACTION_DIRECTORY = $ExtractionDirectory
|
|
||||||
Invoke-PesterTests -TestFile "Tools" -TestName "CodeQLBundle"
|
Invoke-PesterTests -TestFile "Tools" -TestName "CodeQLBundle"
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ Describe "CMake" {
|
|||||||
|
|
||||||
Describe "CodeQLBundle" {
|
Describe "CodeQLBundle" {
|
||||||
It "CodeQLBundle" {
|
It "CodeQLBundle" {
|
||||||
$CodeQLPath = Join-Path $Env:CODEQL_EXTRACTION_DIRECTORY -ChildPath "codeql" | Join-Path -ChildPath "codeql.exe"
|
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "codeql" | Join-Path -ChildPath "*"
|
||||||
|
$CodeQLVersionPath = (Get-Item $CodeQLVersionsWildcard).FullPath
|
||||||
|
$CodeQLPath = Join-Path CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql.exe"
|
||||||
"$CodeQLPath version" | Should -ReturnZeroExitCode
|
"$CodeQLPath version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user