-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (42 loc) · 1.63 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
workflow_call:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore src/fdc3-dotnet.sln
- name: Build
run: dotnet build src/fdc3-dotnet.sln --no-restore --configuration Release
- name: Test
run: dotnet test src/fdc3-dotnet.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --configuration Release
- name: Pack Fdc3
run:
dotnet pack src/Fdc3/Finos.Fdc3.csproj --no-build --configuration Release --output packages
- name: Pack Fdc3.NewtonsoftJson
run:
dotnet pack src/Fdc3.NewtonsoftJson/Finos.Fdc3.NewtonsoftJson.csproj --no-build --configuration Release --output packages
- name: Pack Fdc3.Json
run:
dotnet pack src/Fdc3.Json/Finos.Fdc3.Json.csproj --no-build --configuration Release --output packages
- name: Pack Fdc3.AppDirectory
run:
dotnet pack src/Fdc3.AppDirectory/Finos.Fdc3.AppDirectory.csproj --no-build --configuration Release --output packages
- name: Upload
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: package
path: packages/*.nupkg
if-no-files-found: error
- name: Codecov
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7