forked from Kinnara/ModernWpf
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (45 loc) · 1.2 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
54
name: CodeQL Analysis
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
analyze:
name: codeql-analysis
runs-on: windows-latest
steps:
- name: Setup .NET
id: setup_dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
- name: Clean .NET cache
id: clean_dotnet_cache
shell: pwsh
run: |
dotnet clean ./ModernWpf.sln --configuration Release
dotnet nuget locals all --clear
- name: Install dependencies
id: dotnet_restore
shell: pwsh
run: |
dotnet restore
- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
queries: security-and-quality
- name: Build
id: dotnet_build
shell: pwsh
run: |
dotnet build --configuration Release --no-restore
- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)