-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (43 loc) · 1.27 KB
/
codeql-analysis.yml
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
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '44 23 * * 5'
jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- uses: NuGet/setup-nuget@v1.0.5
- uses: ilammy/msvc-dev-cmd@v1.7.0
with:
spectre: true
toolset: 16
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Nuget restore packages
run:
nuget restore ${{ github.workspace }}\ConEmuIntegration\packages.config -SolutionDirectory ${{ github.workspace }} -NonInteractive
- name: Nuget restore solution packages
run:
nuget restore ${{ github.workspace }}\ConEmuIntegration.sln -NonInteractive
- name: Build solution
run:
msbuild ${{ github.workspace }}\ConEmuIntegration.sln /t:rebuild /p:Platform="Any CPU" /p:Configuration="Debug"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1