-
Notifications
You must be signed in to change notification settings - Fork 89
47 lines (43 loc) · 1.29 KB
/
Copy pathpull-request.yml
File metadata and controls
47 lines (43 loc) · 1.29 KB
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
47
name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches:
- main
- 'release/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0 # Nerdbank.GitVersioning requires non-shallow checkout
persist-credentials: false
- name: Setup .NET SDK
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: |
8.0.x
10.0.x
- name: Restore
run: dotnet restore -bl:LocatorRestore.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 --configuration Debug -bl:LocatorPack.binlog
- name: Upload Packages
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: package
path: '**/*.*nupkg'
if-no-files-found: error
- name: Upload logs
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ always() }}
with:
name: logs
path: '**/*.binlog'
if-no-files-found: error