forked from ScottPlot/ScottPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.25 KB
/
task-full.yaml
File metadata and controls
45 lines (42 loc) · 1.25 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
name: Full Build
on:
workflow_dispatch:
workflow_call:
env:
SOLUTION_FILE: "./src/ScottPlot5/ScottPlot5.sln"
jobs:
full:
name: Full Build
runs-on: windows-latest
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
build-mode: manual
- name: Setup .NET
uses: actions/setup-dotnet@v4
#with:
#dotnet-version: "9.0"
#dotnet-quality: "preview"
- 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
run: dotnet workload restore ${{ env.SOLUTION_FILE }}
- name: Restore Solution
run: dotnet restore ${{ env.SOLUTION_FILE }}
- name: Build Solution
run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release
- name: Run Tests
run: dotnet test ${{ env.SOLUTION_FILE }} --configuration Release --no-build --verbosity minimal
- name: Security Scan
uses: github/codeql-action/analyze@v3