-
Notifications
You must be signed in to change notification settings - Fork 20
34 lines (32 loc) · 977 Bytes
/
build.yml
File metadata and controls
34 lines (32 loc) · 977 Bytes
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
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: .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: .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