-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (47 loc) · 1.73 KB
/
build.yml
File metadata and controls
61 lines (47 loc) · 1.73 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
60
61
name: Build
on:
workflow_call:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: 10.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@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: package
path: packages/*.nupkg
if-no-files-found: error
- name: Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
use_oidc: true