-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (40 loc) · 1.55 KB
/
dotnetall.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
name: SecretSharingDotNet (All supported TFM)
on:
push:
branches:
- '*'
tags-ignore:
- '*'
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v4
- name: Setup .NET 6
uses: actions/[email protected]
with:
dotnet-version: 6.0.416
- name: Setup .NET 7
uses: actions/[email protected]
with:
dotnet-version: 7.0.403
- name: Setup .NET 8
uses: actions/[email protected]
with:
dotnet-version: 8.0.100
- name: Restore
run: dotnet restore SecretSharingDotNet.sln
- name: Build
run: dotnet build --configuration Release --no-restore SecretSharingDotNet.sln
- name: Test
run: dotnet test --no-restore --no-build --configuration Release SecretSharingDotNet.sln -- RunConfiguration.TargetPlatform=x64 RunConfiguration.MaxCpuCount=1 xUnit.AppDomain=denied xUnit.ParallelizeAssembly=false xUnit.ParallelizeTestCollections=false
- name: Prepare README.md for NuGet package
run: |
grep -n "## Install SecretSharingDotNet package" README.md | cut -d: -f 1| xargs -i tail -n +{} README.md > TMP.md && sed -i '1s/^/# Setup\r\n/' TMP.md && mv -f TMP.md README.md
grep -n "# CLI building instructions" README.md | cut -d: -f 1| xargs -i head -n {} README.md | head -n -1 > TMP.md && mv -f TMP.md README.md
- name: Create Package
run: dotnet pack --no-restore --no-build --configuration Release SecretSharingDotNet.sln