9
9
10
10
steps :
11
11
- uses : actions/checkout@v2
12
+
12
13
- name : Setup dotnet
13
14
uses : actions/setup-dotnet@v4
14
15
with :
15
16
dotnet-version : |
16
17
6.x
17
18
8.x
19
+
18
20
- name : Get the version
19
21
id : get_version
20
22
uses : mavrosxristoforos/get-xml-info@1.0
21
23
with :
22
24
xml-file : ' ./Directory.Build.props'
23
25
xpath : ' //Version'
26
+
24
27
- name : Create short version
25
28
id : shortversion
26
29
run : |
27
30
$version = "${{ steps.get_version.outputs.info }}".Substring(0, "${{ steps.get_version.outputs.info }}".LastIndexOf("."))
28
31
Write-Host "::set-output name=shortversion::$version-alpha"
29
32
shell : pwsh
30
- - uses : actions/checkout@v2
33
+
31
34
- name : Restore dependencies
32
35
run : dotnet restore
36
+
33
37
- name : Build
34
- run : dotnet build --no-restore -c Release -p:VersionSuffix=alpha ./SerilogSinksInMemory.sln
38
+ run : dotnet build -c Release -p:VersionSuffix=alpha ./SerilogSinksInMemory.sln
39
+
35
40
- name : Test
36
- run : dotnet test --no-build --verbosity normal -c Release
41
+ run : dotnet test --verbosity normal -c Release
42
+
37
43
- name : Create NuGet package for Serilog.Sinks.InMemory
38
- run : dotnet pack ./src/Serilog.Sinks.InMemory/Serilog.Sinks.InMemory.csproj -c Release --no-build --no-restore -o ./packaging -p:VersionSuffix=-alpha
44
+ run : dotnet pack ./src/Serilog.Sinks.InMemory/Serilog.Sinks.InMemory.csproj -c Release -o ./packages -p:VersionSuffix=-alpha
45
+
39
46
- name : Create NuGet package for Serilog.Sinks.InMemory.Assertions
40
- run : dotnet pack ./src/Serilog.Sinks.InMemory.Assertions/Serilog.Sinks.InMemory.Assertions.csproj -c Release --no-build --no-restore -o ./packaging -p:VersionSuffix=-alpha
47
+ run : dotnet pack ./src/Serilog.Sinks.InMemory.Assertions/Serilog.Sinks.InMemory.Assertions.csproj -c Release -o ./packages -p:VersionSuffix=-alpha
48
+
49
+ - name : Run integration tests for FluentAssertions 5
50
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions5
51
+ run : |
52
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
53
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions5.csproj
54
+
55
+ - name : Run integration tests for FluentAssertions 6
56
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions6
57
+ run : |
58
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
59
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions6.csproj
60
+
61
+ - name : Run integration tests for FluentAssertions 7
62
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions7
63
+ run : |
64
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
65
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions7.csproj
66
+
67
+ - name : Run integration tests for FluentAssertions 8
68
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions8
69
+ run : |
70
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
71
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.FluentAssertions8.csproj
72
+
73
+ - name : Run integration tests for AwesomeAssertions 8
74
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.AwesomeAssertions8
75
+ run : |
76
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
77
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.AwesomeAssertions8.csproj
78
+
79
+ - name : Run integration tests for Shouldly 4.x
80
+ working-directory : test/Serilog.Sinks.InMemory.Assertions.Tests.Integration.Shouldly4
81
+ run : |
82
+ dotnet restore -p:Version=${{ steps.shortversion.outputs.shortversion }}
83
+ dotnet test --no-restore -c Release Serilog.Sinks.InMemory.Assertions.Tests.Integration.Shouldly4.csproj
84
+
41
85
- name : Create Release
42
86
id : create_release
43
87
uses : actions/create-release@v1
@@ -48,23 +92,25 @@ jobs:
48
92
release_name : ${{ steps.get_version.outputs.info }}-alpha
49
93
draft : false
50
94
prerelease : true
95
+
51
96
- name : Upload sink NuGet package
52
97
id : upload-nuget-sink
53
98
uses : actions/upload-release-asset@v1
54
99
env :
55
100
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
101
with :
57
102
upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
58
- asset_path : ./packaging /Serilog.Sinks.InMemory.${{ steps.shortversion.outputs.shortversion }}.nupkg
103
+ asset_path : ./packages /Serilog.Sinks.InMemory.${{ steps.shortversion.outputs.shortversion }}.nupkg
59
104
asset_name : Serilog.Sinks.InMemory.${{ steps.shortversion.outputs.shortversion }}.nupkg
60
105
asset_content_type : application/octet-stream
106
+
61
107
- name : Upload assertions NuGet package
62
108
id : upload-nuget-assertions
63
109
uses : actions/upload-release-asset@v1
64
110
env :
65
111
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
112
with :
67
113
upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
68
- asset_path : ./packaging /Serilog.Sinks.InMemory.Assertions.${{ steps.shortversion.outputs.shortversion }}.nupkg
114
+ asset_path : ./packages /Serilog.Sinks.InMemory.Assertions.${{ steps.shortversion.outputs.shortversion }}.nupkg
69
115
asset_name : Serilog.Sinks.InMemory.Assertions.${{ steps.shortversion.outputs.shortversion }}.nupkg
70
116
asset_content_type : application/octet-stream
0 commit comments