-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 986 Bytes
/
tests.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
name: Tests
on:
push:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/**'
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/**'
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore ".\src"
- name: Build
run: dotnet build ".\src" --configuration Release --no-restore
- name: Test
run: dotnet test ".\src" --no-restore --verbosity normal