mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
[macOS] CodeQL test correction (#6092)
This commit is contained in:
@@ -21,3 +21,5 @@ touch "$codeqlToolcachePath/pinned-version"
|
||||
|
||||
# Touch a file to indicate to the toolcache that setting up CodeQL is complete.
|
||||
touch "$codeqlToolcachePath.complete"
|
||||
|
||||
invoke_tests "Common" "CodeQL"
|
||||
|
||||
@@ -139,11 +139,14 @@ Describe "VirtualBox" -Skip:($os.IsBigSur) {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "CodeQL Action Bundle" {
|
||||
Describe "CodeQL" {
|
||||
It "codeql" {
|
||||
$CodeQLVersionWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
||||
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionWildcard | Select-Object -First 1 -Expand FullName
|
||||
$CodeQLPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql"
|
||||
"$CodeQLPath version --quiet" | Should -ReturnZeroExitCode
|
||||
|
||||
$CodeQLPacksPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "qlpacks"
|
||||
$CodeQLPacksPath | Should -Exist
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user