Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/7.0.0 #191

Merged
merged 48 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f6fc045
Update actions/setup-dotnet action to v4
renovate[bot] Dec 4, 2023
dc11282
Merge pull request #167 from cake-contrib/renovate/actions-setup-dotn…
nils-a Dec 4, 2023
e9549de
Update github/codeql-action digest to c0d1daa
renovate[bot] Dec 7, 2023
d5fec01
Merge pull request #168 from cake-contrib/renovate/github-codeql-acti…
nils-a Dec 7, 2023
483f5b8
Update github/codeql-action digest to 305f654
renovate[bot] Dec 12, 2023
6f19fbc
Merge pull request #169 from cake-contrib/renovate/github-codeql-acti…
nils-a Dec 13, 2023
ecfadca
Update github/codeql-action action to v3
renovate[bot] Dec 13, 2023
b3a9747
Merge pull request #170 from cake-contrib/renovate/github-codeql-acti…
nils-a Dec 13, 2023
78e7d3f
Update actions/upload-artifact action to v4
renovate[bot] Dec 14, 2023
e4cb4f8
Merge pull request #171 from cake-contrib/renovate/actions-upload-art…
nils-a Dec 14, 2023
8b44638
Update github/codeql-action digest to 012739e
renovate[bot] Dec 22, 2023
15eb180
Merge pull request #172 from cake-contrib/renovate/github-codeql-acti…
nils-a Dec 22, 2023
39d94df
Update github/codeql-action digest to e5f05b8
renovate[bot] Jan 8, 2024
6de4eaa
Merge pull request #173 from cake-contrib/renovate/github-codeql-acti…
nils-a Jan 10, 2024
9b8252b
Update dependency dotnet-sdk to v8.0.101
renovate[bot] Jan 10, 2024
83011e2
Merge pull request #174 from cake-contrib/renovate/dotnet-monorepo
nils-a Jan 10, 2024
8709251
Update actions/upload-artifact digest to 1eb3cb2
renovate[bot] Jan 16, 2024
f0b62fc
Merge pull request #176 from cake-contrib/renovate/actions-upload-art…
nils-a Jan 16, 2024
690be39
Update actions/cache digest to e12d46a
renovate[bot] Jan 16, 2024
9e055bc
Merge pull request #175 from cake-contrib/renovate/actions-cache-digest
nils-a Jan 16, 2024
e8f322b
Update actions/cache action to v4
renovate[bot] Jan 17, 2024
8227eda
Merge pull request #178 from cake-contrib/renovate/actions-cache-4.x
nils-a Jan 17, 2024
06cccfd
Update github/codeql-action digest to 0b21cf2
renovate[bot] Jan 17, 2024
de4462f
Merge pull request #177 from cake-contrib/renovate/github-codeql-acti…
nils-a Jan 17, 2024
7e9dd01
Update actions/upload-artifact digest to 694cdab
renovate[bot] Jan 18, 2024
8b477a2
Merge pull request #179 from cake-contrib/renovate/actions-upload-art…
nils-a Jan 19, 2024
7daa585
Update actions/upload-artifact digest to 26f96df
renovate[bot] Jan 23, 2024
3959478
Merge pull request #180 from cake-contrib/renovate/actions-upload-art…
nils-a Jan 24, 2024
5a79566
Update github/codeql-action digest to b7bf0a3
renovate[bot] Jan 26, 2024
48e9af4
Merge pull request #181 from cake-contrib/renovate/github-codeql-acti…
nils-a Jan 26, 2024
05098e3
Update github/codeql-action digest to e8893c5
renovate[bot] Feb 2, 2024
207a30c
Merge pull request #182 from cake-contrib/renovate/github-codeql-acti…
nils-a Feb 2, 2024
1b02590
Update cake-build/cake-action action to v2
renovate[bot] Feb 5, 2024
fa7ac79
Merge pull request #183 from cake-contrib/renovate/cake-build-cake-ac…
nils-a Feb 5, 2024
dc9dae6
Update actions/upload-artifact digest to 5d5d22a
renovate[bot] Feb 5, 2024
6fe6e97
Merge pull request #184 from cake-contrib/renovate/actions-upload-art…
nils-a Feb 5, 2024
50980d2
Update dependency dotnet-sdk to v8.0.200
renovate[bot] Feb 14, 2024
00b989b
Merge pull request #186 from cake-contrib/renovate/dotnet-monorepo
nils-a Feb 14, 2024
76dc934
Update github/codeql-action digest to e675ced
renovate[bot] Feb 14, 2024
3d73bb6
Merge pull request #185 from cake-contrib/renovate/github-codeql-acti…
nils-a Feb 14, 2024
899a5af
Update github/codeql-action digest to 3796146
renovate[bot] Feb 15, 2024
aef6d7d
Merge pull request #187 from cake-contrib/renovate/github-codeql-acti…
nils-a Feb 15, 2024
5af9bdf
Update dependency dotnet-sdk to v8.0.201
renovate[bot] Feb 16, 2024
74cee1f
Merge pull request #188 from cake-contrib/renovate/dotnet-monorepo
nils-a Feb 16, 2024
745189d
Fix FormatException in GitLabCILog when log message contains curly br…
ap0llo Feb 16, 2024
a285922
Merge pull request #189 from ap0llo/fix-formatexception-when-log-mess…
nils-a Feb 16, 2024
23257ef
Fix namespace for types in Cake.GitLabCI.Module
ap0llo Feb 16, 2024
acfe8b4
Merge pull request #190 from ap0llo/fix-namespaces-in-gitlab-ci-module
nils-a Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: git fetch --prune --unshallow

# codecov and unittests need 2.1, gitversion needs 5.0
- uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
- uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: |
2.1
Expand All @@ -61,13 +61,13 @@ jobs:
8.0

- name: Cache Tools
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1.4.1
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
with:
script-path: recipe.cake
target: CI
Expand All @@ -76,7 +76,7 @@ jobs:

# currently, Cake.Recipe does not upload artifacts when run on gh-actions
- name: Upload Issues
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
if-no-files-found: warn
name: ${{ matrix.os }} Issues
Expand All @@ -85,7 +85,7 @@ jobs:
BuildArtifacts/**/coverlet/*.xml

- name: Upload Packages
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
if: runner.os == 'Windows'
with:
if-no-files-found: warn
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
- uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: |
2.1
Expand All @@ -35,22 +35,22 @@ jobs:
8.0

- name: Cache Tools
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Initialize CodeQL
uses: github/codeql-action/init@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2
uses: github/codeql-action/init@379614612a29c9e28f31f39a59013eb8012a51f0 # v3
with:
languages: ${{ matrix.language }}

- name: Build project
uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1.4.1
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: 1.3.0

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2
uses: github/codeql-action/analyze@379614612a29c9e28f31f39a59013eb8012a51f0 # v3
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "8.0.201",
"rollForward": "latestFeature"
}
}
2 changes: 1 addition & 1 deletion src/Cake.GitLabCI.Module/AnsiEscapeCodes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
internal static class AnsiEscapeCodes
{
Expand Down
9 changes: 6 additions & 3 deletions src/Cake.GitLabCI.Module/GitLabCILog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using JetBrains.Annotations;

namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
/// <summary>
/// <see cref="ICakeLog"/> implementation for GitLab CI.
Expand Down Expand Up @@ -70,13 +70,16 @@ public void Write(Verbosity verbosity, LogLevel level, string format, params obj
message = $"{level}: {string.Format(format, args)}";
}

// Passing a string to IConsole.WriteLine() / IConsole.WriteErrorLine() will cause that string to be interpreted as format string.
// This will cause an error if the string contains curly braces and WriteLine() will faile with a FormatException.
// To avoid this, pass in the "no-op" format string and pass the text to write to the console as argument that will be formatted into the format string
if (level > LogLevel.Error)
{
_console.WriteLine(message);
_console.WriteLine("{0}", message);
}
else
{
_console.WriteErrorLine(message);
_console.WriteErrorLine("{0}", message);
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;

using Cake.Core.Composition;

namespace Cake.AzurePipelines.Module
{
/// <summary>
/// Legacy <see cref="ICakeModule"/> implementation for GitLab CI.
/// </summary>
/// <remarks>
/// When <see cref="GitLabCIModule"/> was introduced initially, it was placed in the <c>Cake.AzurePipelines.Module</c> namespace by accident.
/// <para>
/// The namespace has since been adjusted, but this class is still provided in the <c>Cake.AzurePipelines.Module</c> namespace for backwards compatibility in Cake.Frosting projects.
/// When possible, use <see cref="GitLabCI.Module.GitLabCIModule"/> instead.
/// </para>
/// </remarks>
[Obsolete($"Use {nameof(GitLabCIModule)} from namespace Cake.GitLabCI.Module instead")]
public class GitLabCIModule : GitLabCI.Module.GitLabCIModule
{ }

Check warning on line 19 in src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Check warning on line 19 in src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Check warning on line 19 in src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

}
4 changes: 2 additions & 2 deletions src/Cake.GitLabCI.Module/GitLabCIModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using Cake.Core.Composition;
using Cake.Core.Diagnostics;

[assembly: CakeModule(typeof(Cake.AzurePipelines.Module.GitLabCIModule))]
[assembly: CakeModule(typeof(Cake.GitLabCI.Module.GitLabCIModule))]

namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
/// <summary>
/// <see cref="ICakeModule"/> implementation for GitLab CI.
Expand Down
Loading