-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (30 loc) · 901 Bytes
/
build.yml
File metadata and controls
41 lines (30 loc) · 901 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
35
36
37
38
39
40
41
name: build
on:
workflow_dispatch:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Timestamp
uses: gerred/actions/current-time@master
env:
$TIMESTAMP: "${{ steps.current-time.outputs.time }}"
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Build
run: dotnet build --configuration Release NetworkPrimitives.sln
- name: Test
run: dotnet test --no-build --configuration Release NetworkPrimitives.sln --logger:"nunit;LogFilePath=../../test-results/{framework}.xml"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: test-results
path: test-results