FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/.github/workflows/csharp-qltest.yml at codeql-cli-2.27.1 · github/codeql · GitHub
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.1k
Code
Issues
1k
Pull requests
470
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
.github
/
workflows
/
csharp-qltest.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
71 lines (67 loc) · 2.26 KB
Breadcrumbs
codeql
/
.github
/
workflows
/
csharp-qltest.yml
Copy path
File metadata and controls
71 lines (67 loc) · 2.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name
:
"
C#: Run QL Tests
"
on
:
push
:
paths
:
-
"
csharp/**
"
-
"
shared/**
"
-
"
misc/bazel/**
"
-
.github/actions/fetch-codeql/action.yml
-
codeql-workspace.yml
-
"
MODULE.bazel
"
branches
:
-
main
-
"
rc/*
"
pull_request
:
paths
:
-
"
csharp/**
"
-
"
shared/**
"
-
"
misc/bazel/**
"
-
.github/workflows/csharp-qltest.yml
-
.github/actions/fetch-codeql/action.yml
-
codeql-workspace.yml
-
"
MODULE.bazel
"
branches
:
-
main
-
"
rc/*
"
defaults
:
run
:
working-directory
:
csharp
permissions
:
contents
:
read
jobs
:
unit-tests
:
strategy
:
matrix
:
os
:
[ubuntu-latest, windows-latest]
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v5
-
name
:
Setup dotnet
uses
:
actions/setup-dotnet@v4
with
:
dotnet-version
:
10.0.100
-
name
:
Extractor unit tests
run
:
|
dotnet tool restore
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Util.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 extractor/Semmle.Extraction.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
dotnet test -p:RuntimeFrameworkVersion=10.0.0 autobuilder/Semmle.Autobuild.Cpp.Tests
shell
:
bash
stubgentest
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v5
-
uses
:
./csharp/actions/create-extractor-pack
-
name
:
Run stub generator tests
run
:
|
# Generate (Asp)NetCore stubs
STUBS_PATH=stubs_output
python3 scripts/stubs/make_stubs_nuget.py webapp Swashbuckle.AspNetCore.Swagger 6.5.0 "$STUBS_PATH"
rm -rf ql/test/resources/stubs/_frameworks
# Update existing stubs in the repo with the freshly generated ones
mv "$STUBS_PATH/output/stubs/_frameworks" ql/test/resources/stubs/
git status
codeql test run --threads=0 --search-path "${{ github.workspace }}" --check-databases --check-diff-informed --check-undefined-labels --check-repeated-labels --check-redefined-labels --consistency-queries ql/consistency-queries -- ql/test/library-tests/dataflow/flowsources/aspremote
env
:
GITHUB_TOKEN
:
${{ github.token }}
Back
|
FazBrowse Home
|
New Git URL