forked from ScottPlot/ScottPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.56 KB
/
Copy pathtask-full.yaml
File metadata and controls
58 lines (56 loc) · 1.56 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
49
50
51
52
53
54
55
56
57
58
name: Full Build
on:
workflow_dispatch:
inputs:
run-codeql:
description: "Run CodeQL security scan"
required: true
type: boolean
workflow_call:
inputs:
run-codeql:
description: "Run CodeQL security scan"
required: true
type: boolean
jobs:
full:
name: Full Build
runs-on: windows-latest
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup CodeQL
if: ${{ inputs.run-codeql }}
uses: github/codeql-action/init@v3
with:
languages: csharp
build-mode: manual
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
10.0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "17"
- name: Restore Workloads
working-directory: ./src/ScottPlot5/
run: dotnet workload restore
- name: Restore Solution
working-directory: ./src/ScottPlot5/
run: dotnet restore
- name: Build Solution
working-directory: ./src/ScottPlot5/
run: dotnet build --configuration Release
- name: Run Tests
working-directory: ./src/ScottPlot5/
run: dotnet test --configuration Release --no-build --verbosity minimal
- name: Security Scan
if: ${{ inputs.run-codeql }}
uses: github/codeql-action/analyze@v3