-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.55 KB
/
dotnet-ci.yml
File metadata and controls
51 lines (42 loc) · 1.55 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
name: .NET Build & Analyzers (ScriptLauncher)
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
name: Build and Analyze
runs-on: windows-latest
defaults:
run:
shell: pwsh
working-directory: ScriptLauncher
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore
run: |
dotnet restore "ScriptLauncher.csproj"
- name: Build (warnings as errors)
run: |
dotnet build "ScriptLauncher.csproj" -warnaserror -v minimal
- name: Analyzer sweep (diagnostic verbosity)
run: |
dotnet format analyzers "ScriptLauncher.csproj" --verbosity diagnostic *>&1 | Tee-Object -FilePath "analyzers-diagnostics.log"
- name: Build diagnostics (verbose)
run: |
dotnet build "ScriptLauncher.csproj" -warnaserror -v diag *>&1 | Tee-Object -FilePath "build-diagnostics.log"
- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: scriptlauncher-logs
path: |
ScriptLauncher/analyzers-diagnostics.log
ScriptLauncher/build-diagnostics.log