Skip to content

Commit a5ce034

Browse files
Bump GitHubActionsTestLogger from 2.0.1 to 2.1.0 in /MarkdownLinkCheckLogParser (#26)
* Bump GitHubActionsTestLogger in /MarkdownLinkCheckLogParser Bumps [GitHubActionsTestLogger](https://github.com/Tyrrrz/GitHubActionsTestLogger) from 2.0.1 to 2.1.0. - [Changelog](https://github.com/Tyrrrz/GitHubActionsTestLogger/blob/master/Changelog.md) - [Commits](Tyrrrz/GitHubActionsTestLogger@2.0.1...2.1) --- updated-dependencies: - dependency-name: GitHubActionsTestLogger dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * minor updates * fix IDE0251 warning * minor updates * more minor updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eduardo Serrano <eduardomserrano@outlook.com>
1 parent 5d2bcc3 commit a5ce034

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ RUN ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
2525
# end of install powershell
2626

2727
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
28-
#############
29-
# temp fix due to sdk 7.0.201 using a preview version of msbuild
30-
# installing sdk 7.0.103 which doesn't have this problem
31-
#############
32-
RUN apk update && apk upgrade && apk add bash
33-
RUN wget https://dot.net/v1/dotnet-install.sh && chmod +x ./dotnet-install.sh
34-
ENV DOTNET_INSTALL_FOLDER=/usr/share/dotnet
35-
RUN ./dotnet-install.sh --version 7.0.103 --install-dir ${DOTNET_INSTALL_FOLDER}
36-
############# the above block can be deleted when the SDK issue has been resolved
37-
3828
WORKDIR /markdown-link-check-log-parser
3929
COPY ["MarkdownLinkCheckLogParser/NuGet.Config", "MarkdownLinkCheckLogParser/"]
4030
COPY ["MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/MarkdownLinkCheckLogParserCli.csproj", "MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/"]

MarkdownLinkCheckLogParser/.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.severity
302302

303303
# All static readonly fields must be PascalCase
304304
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md
305-
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
305+
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
306306
dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly
307307
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field
308308
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group
@@ -512,6 +512,7 @@ dotnet_diagnostic.SA1116.severity = none # SA1116: The parameters should
512512
dotnet_diagnostic.SA1200.severity = none # SA1200: Using directive should appear within a namespace declaration
513513
dotnet_diagnostic.SA1201.severity = none # SA1201: A property should not follow a method
514514
dotnet_diagnostic.SA1202.severity = none # SA1202: 'public' members should come before 'private' members
515+
dotnet_diagnostic.SA1204.severity = none # SA1204: Static members should appear before non-static members
515516
dotnet_diagnostic.SA1214.severity = none # SA1214: Readonly fields should appear before non-readonly fields
516517
# Naming Rules (SA1300-)
517518
dotnet_diagnostic.SA1309.severity = none # SA1309: Field should not begin with an underscore

MarkdownLinkCheckLogParser/Directory.Build.props

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<LangVersion>latest</LangVersion>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild> <!-- Enable deterministic builds as per https://github.com/clairernovotny/DeterministicBuilds. Recommended when using sourcelink -->
7-
<WarningsAsErrors>nullable;</WarningsAsErrors> <!-- treat all nullable reference warnings as errors -->
8-
<AnalysisLevel>latest</AnalysisLevel> <!-- Use the latest code analyzers that have been released are used. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#analysislevel -->
9-
<AnalysisMode>AllEnabledByDefault</AnalysisMode> <!-- Aggressive or opt-out mode, where all rules are enabled by default as build warnings. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#analysismode -->
10-
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <!-- Force code analysis to run on build. If this starts to slow down the build or Visual Studio consider enabling it only in CI. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#enforcecodestyleinbuild -->
11-
<EnableNETAnalyzers>true</EnableNETAnalyzers> <!-- .NET code quality analysis is only enabled by default for projects that target .NET 5.0 or later. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#enablenetanalyzers -->
6+
<!-- Enable deterministic builds as per https://github.com/clairernovotny/DeterministicBuilds. Recommended when using sourcelink -->
7+
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
8+
<!-- treat all nullable reference warnings as errors -->
9+
<WarningsAsErrors>nullable;</WarningsAsErrors>
10+
<!-- Aggressive or opt-out mode, where all rules are enabled by default as build warnings. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#analysismode -->
11+
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
12+
<!-- Force code analysis to run on build. If this starts to slow down the build or Visual Studio consider enabling it only in CI. https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#enforcecodestyleinbuild -->
13+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1214
</PropertyGroup>
1315

1416
<ItemGroup>
@@ -43,7 +45,7 @@
4345
<PackageReference Include="Shouldly" Version="4.2.1" />
4446
<PackageReference Include="xunit.analyzers" Version="1.1.0" />
4547
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.16" />
46-
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.1" />
48+
<PackageReference Include="GitHubActionsTestLogger" Version="2.1.0" />
4749
<PackageReference Include="LiquidTestReports.Custom" Version="1.0.9" />
4850
</ItemGroup>
4951

MarkdownLinkCheckLogParser/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.103",
3+
"version": "7.0.x",
44
"rollForward": "disable",
55
"allowPrerelease": false
66
}

MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/ArgumentValidations/Argument.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ namespace MarkdownLinkCheckLogParserCli.ArgumentValidations;
22

33
internal static class Argument
44
{
5-
public static int Positive(this int value, [CallerArgumentExpression("value")] string name = "")
5+
public static int Positive(this int value, [CallerArgumentExpression(nameof(value))] string name = "")
66
{
77
var message = $"{name} must be a positive value.";
88
return value >= 0
99
? value
1010
: throw new ArgumentException(message);
1111
}
1212

13-
public static T NotNull<T>([NotNull] this T? value, [CallerArgumentExpression("value")] string name = "")
13+
public static T NotNull<T>([NotNull] this T? value, [CallerArgumentExpression(nameof(value))] string name = "")
1414
where T : class
1515
{
1616
return value ?? throw new ArgumentNullException(name);
1717
}
1818

19-
internal static string NotNullOrWhiteSpace([NotNull] this string? value, [CallerArgumentExpression("value")] string name = "")
19+
internal static string NotNullOrWhiteSpace([NotNull] this string? value, [CallerArgumentExpression(nameof(value))] string name = "")
2020
{
2121
var message = $"{name} cannot be null or whitespace.";
2222
return string.IsNullOrWhiteSpace(value)

MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/GitHub/MemoryExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static LineSplitEnumerator SplitLines(this Memory<char> memory)
88
return new LineSplitEnumerator(memory);
99
}
1010

11-
public struct LineSplitEnumerator
11+
public sealed class LineSplitEnumerator
1212
{
1313
private ReadOnlyMemory<char> _str;
1414

MarkdownLinkCheckLogParser/testenvironments.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
"version": "1",
33
"environments": [
44
{
5-
"name": "WSL-Ubuntu-22.04",
5+
"name": "WSL Ubuntu 22.04",
66
"type": "wsl",
77
"wslDistribution": "Ubuntu-22.04"
8+
},
9+
{
10+
"name": "docker Ubuntu 22.04",
11+
"type": "docker",
12+
"dockerFile": "tests/remote-test-environment.Dockerfile"
813
}
914
]
1015
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# use same linux distro as github runner for ubuntu-latest which is what the workflows use
2+
FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy

docs/dev-notes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This action is published to the [GitHub marketplace](https://github.com/marketpl
100100

101101
When publishing a new version:
102102

103-
- create a new tag for the release and update the latest major tag to the same commit as the new tag.
103+
- create a new tag (like v1.0.4) for the release and update the latest major tag (like v1) to the same commit as the new tag.
104104
- the docker image tag for `docker://ghcr.io/edumserrano/markdown-link-check-log-parser` in the [action.yml](/action.yml) file needs to be updated to a new major version if a new major version has been published.
105105

106106
Once a new tag is pushed the workflow to publish a docker image will execute and publish a docker image to GitHub packages that will contain a docker image tag that matches the new GitHub tag.

0 commit comments

Comments
 (0)