-
Notifications
You must be signed in to change notification settings - Fork 61
35 lines (29 loc) · 839 Bytes
/
Copy pathbuild-status.yml
File metadata and controls
35 lines (29 loc) · 839 Bytes
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
name: Build Status
on:
push:
branches:
- master
jobs:
build-and-test-windows:
name: Build And Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
10.0.x
- name: Generate Classes
run: dotnet run -c Release -f net10.0 -p tools\NHapiTools.Generator\NHapiTools.Generator.csproj
- name: Install dependencies
run: dotnet restore
- name: Initial Build
run: dotnet build -c Release --no-restore
- name: Run tests for all target frameworks
run: |
dotnet test -c Debug -f net10.0 --no-restore --results-directory TestResults
- name: NuGet Pack
run: NuGet.exe pack NHapiTools.nuspec
working-directory: tools\nuget