-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 950 Bytes
/
ci.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
name: ci
on:
push:
branches: [main]
tags-ignore:
- "*"
pull_request:
branches: [main]
tags-ignore:
- "*"
paths-ignore:
- "*.md"
- ".editorconfig"
- "docs/**"
workflow_dispatch:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build:
name: ${{ matrix.platform }} build
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "7.0.x"
- name: Build and test
run: |
dotnet restore
dotnet build --configuration Release --no-restore
dotnet test --configuration Release --verbosity minimal --no-build