-
Notifications
You must be signed in to change notification settings - Fork 464
59 lines (48 loc) · 1.29 KB
/
dotnetcore.yml
File metadata and controls
59 lines (48 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
48
49
50
51
52
53
54
55
56
57
58
59
name: "Run unit tests"
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch: # Allows manual triggering of workflow
push:
branches:
- dev
- dev8x
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- dev
- dev8x
env:
TargetNetNext: False
jobs:
build:
runs-on: windows-latest
continue-on-error: false
name: "Build and run unit tests"
steps:
- name: Set git core.longpaths flag
run: |
git config --system core.longpaths true
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
- name: Setup .NET 6.x
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7
with:
dotnet-version: '6.x'
- name: Setup .NET SDK from global.json
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7
with:
global-json-file: ./global.json
- name: Strong name bypass
run: |
regedit /s .\build\strongNameBypass.reg
- name: Run the tests
run: dotnet test Wilson.sln --settings:./build/CodeCoverage.runsettings
# Run baseline package validation
- name: Pack
run: dotnet pack Product.proj --no-restore --no-build