-
Notifications
You must be signed in to change notification settings - Fork 83
46 lines (42 loc) · 1.02 KB
/
pull-request.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
39
40
41
42
43
44
45
46
name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches:
- master
- 'release/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Nerdbank.GitVersioning requires non-shallow checkout
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
6.0.x
- name: Restore
run: dotnet restore -bl:restore.binlog
- name: Build
run: dotnet build --no-restore -bl:MSBuildLocator.binlog
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack --no-build
- name: Upload Packages
uses: actions/upload-artifact@v2
with:
name: package
path: '**/*.*nupkg'
if-no-files-found: error
- name: Upload logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: logs
path: '**/*.binlog'
if-no-files-found: error