-
-
Notifications
You must be signed in to change notification settings - Fork 480
50 lines (41 loc) · 1 KB
/
dotnet-test.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
45
46
47
48
49
50
name: .NET Tests
on:
push:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/dotnet-test.yml'
pull_request:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/dotnet-test.yml'
workflow_dispatch:
jobs:
test-codebase:
runs-on: windows-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
# - name: Install WinGet
# uses: Cyberboss/install-winget@v1
- name: Install dependencies
working-directory: src
run: dotnet restore
- name: Build
working-directory: src
run: dotnet build --configuration Release --no-restore
- name: Run Tests
working-directory: src
run: dotnet test --no-restore --verbosity q --nologo