-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (37 loc) · 1001 Bytes
/
dotnet.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
# https://github.com/actions/setup-dotnet
name: Build
on:
push:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths-ignore:
- "README.md"
- ".github/workflows/**.yml"
- "docs/**"
- "**/*.md"
- "**/*.yml"
env:
DOTNET_VERSION: "9.0.x"
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build-and-test:
name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore SGP.sln
- name: Build
run: dotnet build SGP.sln --no-restore
- name: Test
run: dotnet test SGP.sln --no-build --no-restore --verbosity minimal