-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 933 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
38
39
name: .NET
on:
push:
branches:
- '*'
- '*/*'
pull_request:
branches:
- '*'
- '*/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet run --framework net9.0 --report-xunit-html --report-xunit-html-filename TestReport.html --project src/Tests/Tests.csproj
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: DwC-A_dotnet.nupkg
path: src/DWC_A/bin/Release/DwC-A_dotnet.*.nupkg
- name: Upload Test Report
uses: actions/upload-artifact@v4
with:
name: TestReport.html
path: src/Tests/bin/**/TestReport.html