-
Notifications
You must be signed in to change notification settings - Fork 18
37 lines (33 loc) · 924 Bytes
/
dotnet.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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
#- name: Zip the build directory
# # You may pin to the exact commit or the version.
# # uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28
# uses: TheDoctor0/[email protected]
# with:
# path: . # optional, default is .
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: IRTV
path: bin/Release/net5.0-windows
retention-days: 120