-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 954 Bytes
/
ci.yml
File metadata and controls
40 lines (31 loc) · 954 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Show dotnet info
run: dotnet --info
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props', '**/global.json', '**/nuget.config') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore
run: dotnet restore --nologo
- name: Build (Release)
run: dotnet build --configuration Release --nologo -warnaserror
- name: Test (Release)
run: dotnet test --configuration Release --nologo --no-build