-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.03 KB
/
dotnet-test.yml
File metadata and controls
42 lines (37 loc) · 1.03 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
name: .NET Test Workflow
on:
push:
branches:
- main
paths:
- '.github/workflows/**'
- 'NF.Tool.ReleaseNoteMaker/**'
pull_request:
branches:
- main
paths:
- '.github/workflows/**'
- 'NF.Tool.ReleaseNoteMaker/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v5
# https://github.com/actions/cache
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
# https://github.com/actions/setup-dotnet
- name: Dotnet Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.x
- name: Run tests
working-directory: NF.Tool.ReleaseNoteMaker
run: dotnet test --configuration Release --verbosity normal