-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (38 loc) · 857 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
name: CI
on:
push:
tags:
- '[0-9].[0-9]+.[0-9]'
- '[0-9].[0-9]+.[0-9]+-*'
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: Build and test on ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-2019
name: Windows
- os: ubuntu-20.04
name: Linux
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Tests
run: dotnet test src --configuration Release --no-build