-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 928 Bytes
/
dotnet.yml
File metadata and controls
42 lines (35 loc) · 928 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
41
42
name: .NET CI
on:
push:
branches:
- "dev"
- "prod"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- TidyFolder
defaults:
run:
working-directory: ./${{ matrix.project }}
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build (Debug)
run: dotnet build --no-restore --configuration Debug
- name: Test (Debug)
run: dotnet test --no-build --verbosity normal --configuration Debug