-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 967 Bytes
/
dotnet-build.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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
permissions:
security-events: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript, csharp
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ./demos/net5/GrpcDemo
run: dotnet restore
- name: Build
working-directory: ./demos/net5/GrpcDemo
run: dotnet build --no-restore -c Release --verbosity normal
- name: Test
working-directory: ./demos/net5/GrpcDemo
run: dotnet test --no-build -c Release --verbosity normal
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3