9
9
name : Build
10
10
11
11
on :
12
+ workflow_dispatch :
12
13
push :
13
14
branches : [ 'master', 'release/**' ]
14
15
pull_request :
57
58
- name : Git checkout
58
59
uses : actions/checkout@v4
59
60
- name : Restore tools
60
- run : |
61
- dotnet tool restore
61
+ run : dotnet tool restore
62
62
- name : Restore packages
63
- run : |
64
- dotnet restore
63
+ run : dotnet restore
65
64
- name : Calculate version suffix
66
65
shell : pwsh
67
66
run : |
94
93
Write-Output "PACKAGE_VERSION_SUFFIX=$versionSuffix" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
95
94
- name : Build
96
95
shell : pwsh
97
- run : |
98
- dotnet build --no-restore --configuration Release /p:VersionSuffix=$env:PACKAGE_VERSION_SUFFIX
96
+ run : dotnet build --no-restore --configuration Release /p:VersionSuffix=$env:PACKAGE_VERSION_SUFFIX
99
97
- name : Test
100
98
env :
101
99
# Override log levels, to reduce logging output when running tests in ci-build.
@@ -104,8 +102,7 @@ jobs:
104
102
Logging__LogLevel__Microsoft.Extensions.Hosting.Internal.Host : ' None'
105
103
Logging__LogLevel__Microsoft.EntityFrameworkCore.Database.Command : ' None'
106
104
Logging__LogLevel__JsonApiDotNetCore : ' None'
107
- run : |
108
- dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true"
105
+ run : dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true"
109
106
- name : Upload coverage to codecov.io
110
107
if : matrix.os == 'ubuntu-latest'
111
108
env :
@@ -116,8 +113,7 @@ jobs:
116
113
verbose : true
117
114
- name : Generate packages
118
115
shell : pwsh
119
- run : |
120
- dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages /p:VersionSuffix=$env:PACKAGE_VERSION_SUFFIX
116
+ run : dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages /p:VersionSuffix=$env:PACKAGE_VERSION_SUFFIX
121
117
- name : Upload packages to artifacts
122
118
if : matrix.os == 'ubuntu-latest'
123
119
uses : actions/upload-artifact@v4
@@ -169,8 +165,7 @@ jobs:
169
165
- name : Git checkout
170
166
uses : actions/checkout@v4
171
167
- name : Restore tools
172
- run : |
173
- dotnet tool restore
168
+ run : dotnet tool restore
174
169
- name : InspectCode
175
170
shell : pwsh
176
171
run : |
@@ -226,11 +221,9 @@ jobs:
226
221
with :
227
222
fetch-depth : 2
228
223
- name : Restore tools
229
- run : |
230
- dotnet tool restore
224
+ run : dotnet tool restore
231
225
- name : Restore packages
232
- run : |
233
- dotnet restore
226
+ run : dotnet restore
234
227
- name : CleanupCode (on PR diff)
235
228
if : github.event_name == 'pull_request'
236
229
shell : pwsh
0 commit comments