forked from Live-Charts/LiveCharts2
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.54 KB
/
codeql-analysis.yml
File metadata and controls
48 lines (40 loc) · 1.54 KB
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
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '35 19 * * 4'
jobs:
analyze:
name: Analyze
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
targetplatform: [ x86, x64 ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Release build
run: |
dotnet build ./src/LiveChartsCore --configuration Release
dotnet build ./src/skiasharp/LiveChartsCore.SkiaSharp --configuration Release
dotnet build ./src/skiasharp/LiveChartsCore.SkiaSharp.Avalonia --configuration Release
dotnet build ./src/skiasharp/LiveChartsCore.SkiaSharp.WinForms --configuration Release
dotnet build ./src/skiasharp/LiveChartsCore.SkiaSharp.WPF --configuration Release
dotnet build ./src/skiasharp/LiveChartsCore.SkiaSharp.Xamarin.Forms --configuration Release
dotnet build ./samples/AvaloniaSample --configuration Release
dotnet build ./samples/WinFormsSample --configuration Release
dotnet build ./samples/WPFSample --configuration Release
dotnet build ./samples/XamarinSample/XamarinSample/XamarinSample --configuration Release
- name: Run unit tests
run: dotnet test ./tests/LiveChartsCore.UnitTesting
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1