Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 0e9ad2e

Browse files
authored
Merge pull request #46 from nils-a/release/0.4.0
Release/0.4.0
2 parents eee7384 + 09e979e commit 0e9ad2e

File tree

7 files changed

+33
-79
lines changed

7 files changed

+33
-79
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "0.38.5",
6+
"version": "1.3.0",
77
"commands": [
88
"dotnet-cake"
99
]

.github/workflows/build.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ windows-2019, ubuntu-18.04, macos-10.15 ]
22+
os: [ windows-2019, ubuntu-18.04, macos-11 ]
2323
env:
2424
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
2525
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
@@ -44,19 +44,14 @@ jobs:
4444
uses: actions/checkout@v3
4545
- name: Fetch all tags and branches
4646
run: git fetch --prune --unshallow
47-
- uses: actions/setup-dotnet@v2.0.0
47+
- uses: actions/setup-dotnet@v3.0.3
4848
with:
4949
# codecov needs 2.1
50-
dotnet-version: '2.1.818'
51-
- uses: actions/[email protected]
52-
with:
53-
dotnet-version: '3.1.x'
54-
- uses: actions/[email protected]
55-
with:
56-
dotnet-version: '5.0.x'
57-
- uses: actions/[email protected]
58-
with:
59-
dotnet-version: '6.0.x'
50+
dotnet-version: |
51+
2.1
52+
3.1
53+
5.0
54+
6.0
6055
- name: Cache Tools
6156
uses: actions/cache@v3
6257
with:
@@ -67,9 +62,7 @@ jobs:
6762
with:
6863
script-path: recipe.cake
6964
target: CI
70-
verbosity: Diagnostic
71-
cake-version: 0.38.5
72-
cake-bootstrap: true
65+
cake-version: 1.3.0
7366
- name: Upload Issues
7467
uses: actions/upload-artifact@v3
7568
with:

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,14 @@ jobs:
3434
with:
3535
fetch-depth: 0
3636

37-
- uses: actions/setup-dotnet@v2.0.0
37+
- uses: actions/setup-dotnet@v3.0.3
3838
with:
3939
# codecov needs 2.1
40-
dotnet-version: '2.1.818'
41-
- uses: actions/[email protected]
42-
with:
43-
dotnet-version: '3.1.x'
44-
- uses: actions/[email protected]
45-
with:
46-
dotnet-version: '5.0.x'
47-
- uses: actions/[email protected]
48-
with:
49-
dotnet-version: '6.0.x'
40+
dotnet-version: |
41+
2.1
42+
3.1
43+
5.0
44+
6.0
5045
5146
- name: Cache Tools
5247
uses: actions/cache@v3
@@ -56,7 +51,7 @@ jobs:
5651

5752
# Initializes the CodeQL tools for scanning.
5853
- name: Initialize CodeQL
59-
uses: github/codeql-action/init@v1
54+
uses: github/codeql-action/init@v2
6055
with:
6156
languages: ${{ matrix.language }}
6257
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -69,8 +64,7 @@ jobs:
6964
with:
7065
script-path: recipe.cake
7166
target: DotNetCore-Build
72-
cake-version: 0.38.5
73-
cake-bootstrap: true
67+
cake-version: 1.3.0
7468

7569
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@v2

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"allowPrerelease": true,
4-
"version": "6.0.200",
4+
"version": "6.0.402",
55
"rollForward": "latestFeature"
66
}
77
}

recipe.cake

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#load nuget:?package=Cake.Recipe&version=2.2.1
1+
#load nuget:?package=Cake.Recipe&version=3.0.1
22

33
var standardNotificationMessage = "Version {0} of {1} has just been released, it will be available here https://www.nuget.org/packages/{1}, once package indexing is complete.";
44

@@ -14,44 +14,11 @@ BuildParameters.SetParameters(
1414
twitterMessage: standardNotificationMessage,
1515
preferredBuildProviderType: BuildProviderType.GitHubActions,
1616
shouldRunDotNetCorePack: true,
17-
shouldUseDeterministicBuilds: true,
18-
shouldRunDupFinder: false, // dupFinder is missing since 2021.3.0-eap
19-
shouldRunInspectCode: false // we're shipping a custom version of it below
17+
shouldUseDeterministicBuilds: true
2018
);
2119

2220
BuildParameters.PrintParameters(Context);
2321

24-
// workaround for https://github.com/cake-contrib/Cake.Recipe/issues/862
25-
ToolSettings.SetToolPreprocessorDirectives(
26-
reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.3.3");
27-
2822
ToolSettings.SetToolSettings(context: Context);
2923

30-
// additional workaround for https://github.com/cake-contrib/Cake.Recipe/issues/862
31-
// to suppress the --build/--no-build warning that is generated in the default
32-
BuildParameters.Tasks.InspectCodeTask = Task("InspectCode2021")
33-
.WithCriteria(() => BuildParameters.BuildAgentOperatingSystem == PlatformFamily.Windows, "Skipping due to not running on Windows")
34-
.Does<BuildData>(data => RequireTool(ToolSettings.ReSharperTools, () => {
35-
var inspectCodeLogFilePath = BuildParameters.Paths.Directories.InspectCodeTestResults.CombineWithFilePath("inspectcode.xml");
36-
37-
var settings = new InspectCodeSettings() {
38-
SolutionWideAnalysis = true,
39-
OutputFile = inspectCodeLogFilePath,
40-
ArgumentCustomization = x => x.Append("--no-build")
41-
};
42-
43-
if (FileExists(BuildParameters.SourceDirectoryPath.CombineWithFilePath(BuildParameters.ResharperSettingsFileName)))
44-
{
45-
settings.Profile = BuildParameters.SourceDirectoryPath.CombineWithFilePath(BuildParameters.ResharperSettingsFileName);
46-
}
47-
48-
InspectCode(BuildParameters.SolutionFilePath, settings);
49-
50-
// Pass path to InspectCode log file to Cake.Issues.Recipe
51-
IssuesParameters.InputFiles.InspectCodeLogFilePath = inspectCodeLogFilePath;
52-
})
53-
);
54-
BuildParameters.Tasks.AnalyzeTask.IsDependentOn("InspectCode2021");
55-
IssuesBuildTasks.ReadIssuesTask.IsDependentOn("InspectCode2021");
56-
5724
Build.RunDotNetCore();

src/Spectre.Console.Registrars.SimpleInjector.Tests/Spectre.Console.Registrars.SimpleInjector.Tests.csproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
8+
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
99
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1010
<PrivateAssets>all</PrivateAssets>
1111
</PackageReference>
12-
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
14-
<PackageReference Include="Moq" Version="4.17.2" />
15-
<PackageReference Include="Shouldly" Version="4.0.3" />
16-
<PackageReference Include="SimpleInjector" Version="5.3.2" />
17-
<PackageReference Include="Spectre.Console" Version="0.44.0" />
18-
<PackageReference Include="Spectre.Console.Testing" Version="0.44.0" />
19-
<PackageReference Include="xunit" Version="2.4.1" />
20-
<PackageReference Include="xunit.analyzers" Version="0.10.0" />
21-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
12+
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
14+
<PackageReference Include="Moq" Version="4.18.2" />
15+
<PackageReference Include="Shouldly" Version="4.1.0" />
16+
<PackageReference Include="SimpleInjector" Version="5.4.1" />
17+
<PackageReference Include="Spectre.Console.Cli" Version="0.45.0" />
18+
<PackageReference Include="Spectre.Console.Testing" Version="0.45.0" />
19+
<PackageReference Include="xunit" Version="2.4.2" />
20+
<PackageReference Include="xunit.analyzers" Version="1.0.0" />
21+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2323
<PrivateAssets>all</PrivateAssets>
2424
</PackageReference>

src/Spectre.Console.Registrars.SimpleInjector/Spectre.Console.Registrars.SimpleInjector.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<PrivateAssets>all</PrivateAssets>
3535
</PackageReference>
3636
<PackageReference Include="SimpleInjector" Version="5.0.0" PrivateAssets="all" />
37-
<PackageReference Include="Spectre.Console" Version="0.44.0" PrivateAssets="all" />
37+
<PackageReference Include="Spectre.Console.Cli" Version="0.45.0" PrivateAssets="all" />
3838
</ItemGroup>
3939

4040
</Project>

0 commit comments

Comments
 (0)