Skip to content

Commit 0e4073b

Browse files
authored
Merge pull request #21 from KuraiAndras/remove-nuke
Remove nuke, clean up stuff
2 parents 6402617 + c1af364 commit 0e4073b

49 files changed

Lines changed: 165 additions & 680 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-sonarscanner": {
6+
"version": "10.2.0",
7+
"commands": [
8+
"dotnet-sonarscanner"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tab_width = 4
1919

2020
# New line preferences
2121
end_of_line = crlf
22-
insert_final_newline = false
22+
insert_final_newline = true
2323

2424
#### .NET Coding Conventions ####
2525
[*.{cs,vb}]
@@ -179,6 +179,9 @@ csharp_style_prefer_top_level_statements = true:silent
179179
# IDE0055: Fix formatting
180180
dotnet_diagnostic.IDE0055.severity = warning
181181

182+
# xUnit2024: Do not use boolean asserts for simple equality tests
183+
dotnet_diagnostic.xUnit2024.severity = warning
184+
182185
[*.{cs,vb}]
183186

184187
# Naming rules

.github/workflows/publish.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# ------------------------------------------------------------------------------
2-
# <auto-generated>
3-
#
4-
# This code was generated.
5-
#
6-
# - To turn off auto-generation set:
7-
#
8-
# [GitHubActions (AutoGenerate = false)]
9-
#
10-
# - To trigger manual generation invoke:
11-
#
12-
# nuke --generate-configuration GitHubActions_Publish --host GitHubActions
13-
#
14-
# </auto-generated>
15-
# ------------------------------------------------------------------------------
16-
171
name: Publish
182

193
on:
@@ -22,16 +6,21 @@ on:
226
- '*'
237

248
jobs:
25-
windows-latest:
26-
name: windows-latest
27-
runs-on: windows-latest
9+
publish:
10+
name: publish
11+
runs-on: ubuntu-latest
2812
steps:
29-
- uses: actions/checkout@v3
13+
14+
- uses: actions/checkout@v4
3015
with:
3116
fetch-depth: 0
32-
- name: Run './build.cmd PushToNuGet'
33-
run: ./build.cmd PushToNuGet
34-
env:
35-
NugetApiKey: ${{ secrets.NUGET_API_KEY }}
36-
NugetApiUrl: ${{ secrets.NUGET_API_URL }}
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- uses: actions/setup-dotnet@v4
19+
20+
- name: Pack
21+
run: |
22+
dotnet pack ./MediatR.Courier --configuration Release --output ./artifacts /p:Version="${GITHUB_REF_NAME}"
23+
24+
- name: Publish
25+
run: |
26+
dotnet nuget push ./artifacts/ --api-key "${{ secrets.NUGET_API_KEY }}"

.github/workflows/run-ci.yml

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,54 @@
1-
# ------------------------------------------------------------------------------
2-
# <auto-generated>
3-
#
4-
# This code was generated.
5-
#
6-
# - To turn off auto-generation set:
7-
#
8-
# [GitHubActions (AutoGenerate = false)]
9-
#
10-
# - To trigger manual generation invoke:
11-
#
12-
# nuke --generate-configuration GitHubActions_run-ci --host GitHubActions
13-
#
14-
# </auto-generated>
15-
# ------------------------------------------------------------------------------
16-
171
name: run-ci
182

193
on:
204
push:
215
branches:
226
- master
23-
- develop
247
pull_request:
258
branches:
269
- master
27-
- develop
2810

2911
jobs:
30-
windows-latest:
31-
name: windows-latest
12+
ci:
13+
name: ci
3214
runs-on: windows-latest
3315
steps:
34-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
3517
with:
3618
fetch-depth: 0
37-
- name: Run './build.cmd Test SonarEnd InstallJava'
38-
run: ./build.cmd Test SonarEnd InstallJava
39-
env:
40-
SonarHostUrl: ${{ secrets.SONAR_HOST_URL }}
41-
SonarProjectKey: ${{ secrets.SONAR_PROJECT_KEY }}
42-
SonarToken: ${{ secrets.SONAR_TOKEN }}
43-
SonarOrganization: ${{ secrets.SONAR_ORGANIZATION }}
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- uses: actions/setup-dotnet@v4
21+
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: 17
26+
distribution: 'zulu'
27+
28+
- name: Restore Tools
29+
run: |
30+
dotnet tool restore
31+
32+
- name: Sonar Begin
33+
run: |
34+
dotnet dotnet-sonarscanner begin `
35+
/k:"KuraiAndras_MediatR.Courier" `
36+
/o:"kuraiandras" `
37+
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" `
38+
/d:sonar.host.url="https://sonarcloud.io" `
39+
/d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml `
40+
/d:sonar.cs.vstest.reportsPaths="**/*.trx" `
41+
/d:sonar.scanner.scanAll=false `
42+
/d:sonar.coverage.exclusions="MediatR.Courier.Examples.Wpf.Core/**/*.cs" `
43+
44+
- name: Restore NuGet packages
45+
run: dotnet restore
46+
47+
- name: Build
48+
run: dotnet build --no-restore
49+
50+
- name: Run Tests
51+
run: dotnet test --no-build --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
52+
53+
- name: Sonar End
54+
run: dotnet dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 7.0.0
2+
- Removed Nuke
3+
- Updated to .NET 8
4+
- Fixed sonarcloud
5+
- Removed old azure devops pipelines
6+
- Pipelines now fully written in github actions
7+
- Updated dependencies
8+
19
# 6.0.0
210
- Update MediatR to version 12
311
- Deprecate DI package
@@ -9,4 +17,4 @@
917

1018
# 5.0.0
1119
- Update MediatR to version 10
12-
- Update target framework to netstandard2.1
20+
- Update target framework to netstandard2.1

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All" />
24-
<PackageReference Include="Roslynator.Analyzers" Version="4.2.0" PrivateAssets="all" />
25-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.53.0.62665" PrivateAssets="all" />
23+
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25" PrivateAssets="All" />
24+
<PackageReference Include="Roslynator.Analyzers" Version="4.13.1" PrivateAssets="all" />
25+
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.11.0.117924" PrivateAssets="all" />
2626
</ItemGroup>
2727

2828
</Project>

MediatR.Courier.Build/.editorconfig

Lines changed: 0 additions & 46 deletions
This file was deleted.

MediatR.Courier.Build/Build.cs

Lines changed: 0 additions & 63 deletions
This file was deleted.

MediatR.Courier.Build/Configuration.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

MediatR.Courier.Build/GithubActions.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)