-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (36 loc) · 1.08 KB
/
build.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: Build & Test
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**' # Don't run workflow when files are only in the /docs directory
jobs:
build-ubuntu:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v1
- name: .NET Build
run: dotnet build Build.csproj -c Release --nologo /p:CI=true
- name: .NET Test
run: dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true
build-windows:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v1
- name: .NET Build
run: dotnet build Build.csproj -c Release --nologo /p:CI=true
- name: .NET Test
run: dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true