-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 727 Bytes
/
main.yml
File metadata and controls
33 lines (26 loc) · 727 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
# Workflow for test and build.
name: Build
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: windows-latest
env:
solution: Argos.Framework.ServiceInjector.sln
test_project: Argos.Framework.ServiceInjector.Tests\Argos.Framework.ServiceInjector.Tests.csproj
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Execute unit tests
run: dotnet test $env:test_project
- name: Build project
run: dotnet build $env:solution --configuration Release