File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
powershell-pr-check :
11
11
name : powershell-pr-check
12
- runs-on : ubuntu -latest
12
+ runs-on : windows -latest
13
13
if : github.repository == 'microsoft/codeql'
14
14
permissions :
15
15
contents : read
23
23
uses : ./.github/actions/fetch-codeql
24
24
with :
25
25
channel : release
26
- - name : Compile PowerShell Queries
26
+ - name : Install PowerShell
27
27
run : |
28
- codeql query compile --check-only --keep-going powershell/ql/src
28
+ $path = Split-Path (Get-Command codeql).Source
29
+ ./powershell/build.ps1 $path
30
+ - name : Run QL tests
31
+ run : |
32
+ codeql test run --threads=0 powershell/ql/test
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ param (
3
3
)
4
4
5
5
$toolsWin64Folder = Join-Path (Join-Path (Join-Path $cliFolder " powershell" ) " tools" ) " win64"
6
- dotnet publish (Join-Path " extractor" " powershell.sln" ) - o $toolsWin64Folder
6
+ dotnet publish (Join-Path " $PSScriptRoot / extractor" " powershell.sln" | Resolve-Path ) - o $toolsWin64Folder
7
7
if ($LASTEXITCODE -ne 0 ) {
8
8
Write-Host " Build failed"
9
9
exit 1
10
10
}
11
11
12
12
$powershellFolder = Join-Path - Path $cliFolder - ChildPath " powershell"
13
- Copy-Item - Path codeql- extractor.yml - Destination $powershellFolder - Force
14
- $qlLibFolder = Join-Path - Path " ql" - ChildPath " lib"
13
+ Copy-Item - Path " $PSScriptRoot / codeql-extractor.yml" - Destination $powershellFolder - Force
14
+ $qlLibFolder = Join-Path - Path " $PSScriptRoot / ql" - ChildPath " lib"
15
15
Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
16
16
Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme.stats" ) - Destination $powershellFolder - Force
17
- Copy-Item - Path " tools" - Destination $powershellFolder - Recurse - Force
17
+ Copy-Item - Path " $PSScriptRoot / tools" - Destination $powershellFolder - Recurse - Force
You can’t perform that action at this time.
0 commit comments