Skip to content

Commit 35633d9

Browse files
authored
Create CodeQL pipeline (#2)
1 parent ff200eb commit 35633d9

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CodeQL Analysis
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 8 * * *'
8+
workflow_dispatch:
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: windows-latest
14+
strategy:
15+
matrix:
16+
projects: [
17+
'Microsoft.Diagnostics.Tracing\EventSource\EventSource.sln',
18+
'Microsoft.Diagnostics.Tracing\TraceEvent\TraceEvent.sln',
19+
'System.Numerics\SIMD\System.Numerics.Vectors.SampleCode.sln',
20+
'System.Reflection.Metadata\MdDumper\MdDumper.csproj',
21+
'WinForms-HDPI\PerMonitorAware\PerMonitorDemo.sln',
22+
'WinForms-HDPI\SystemAware\HighDpiDemo.sln'
23+
]
24+
steps:
25+
- name: Add msbuild to PATH
26+
uses: microsoft/setup-msbuild@v1.0.2
27+
28+
- name: Checkout repository
29+
uses: actions/checkout@v2
30+
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v1
33+
with:
34+
languages: csharp
35+
queries: security-and-quality
36+
37+
- name: Build project
38+
continue-on-error: true
39+
run: |
40+
nuget restore ${{ matrix.projects }}
41+
msbuild ${{ matrix.projects }} /p:UseSharedCompilation=false
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v1
45+
46+
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)

0 commit comments

Comments
 (0)