-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (32 loc) · 916 Bytes
/
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
name: Build
on:
push:
branches: [ master ]
paths:
- ".github/workflows/build.yml"
- "WinQuickLook*"
pull_request:
branches: [ master ]
paths:
- ".github/workflows/build.yml"
- "WinQuickLook*"
env:
DOTNET_VERSION: 8.0.x
jobs:
build:
if: ${{ !github.event.pull_request.draft }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build solutions
run: dotnet build .\WinQuickLook.sln -c Release -p:Platform=x64
- name: Run test cases
run: dotnet test .\WinQuickLook.sln -c Release -p:Platform=x64 --no-build
- name: Lint C# code
run: dotnet format .\WinQuickLook.sln --verify-no-changes --verbosity detailed --no-restore