Skip to content

Commit

Permalink
Merge branch 'release/6.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Jan 3, 2023
2 parents 78168ae + e46b7d8 commit 7962e55
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.38.5",
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,44 +42,44 @@ jobs:
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Fetch all tags and branches
run: git fetch --prune --unshallow

- name: Install .NET SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3.0.3
with:
# gitversion needs 5.0 and we need all SDKs the project is targeting
dotnet-version: |
3.1.415
5.0.403
6.0.100
7.0.100
- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@v1
uses: cake-build/cake-action@v1.4.1
with:
script-path: recipe.cake
target: CI
verbosity: Normal
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest

- name: Upload Issues-Report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: issues
path: BuildArtifacts/report.html

- name: Upload Packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: package
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -41,7 +41,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,4 +53,4 @@ jobs:
shell: pwsh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
9 changes: 4 additions & 5 deletions .github/workflows/publishDocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2.3.4 #https://github.com/actions/checkout
uses: actions/checkout@v3 #https://github.com/actions/checkout
with:
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....
ref: ${{ github.event.ref }}

- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}

- name: Publishing documentation
uses: cake-build/cake-action@v1
uses: cake-build/cake-action@v1.4.1
with:
script-path: recipe.cake
target: Force-Publish-Documentation
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest
13 changes: 6 additions & 7 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:

steps:
- name: Checkout the requested branch
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Cache Tools
uses: actions/cache@v2.1.4
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Set up git version
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
uses: gittools/actions/gitversion/[email protected].11
uses: gittools/actions/gitversion/[email protected].15
with:
versionSpec: "5.x"
- name: Run git version
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
id: gitversion
uses: gittools/actions/gitversion/[email protected].11
uses: gittools/actions/gitversion/[email protected].15
- name: Create release branch ${{ github.event.inputs.version }}
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
Expand All @@ -38,10 +38,9 @@ jobs:
branch: "release/${{ steps.gitversion.outputs.majorMinorPatch }}"
github_token: ${{ secrets.GH_TOKEN }}
- name: Drafting Release Notes
uses: cake-build/cake-action@v1
uses: cake-build/cake-action@v1.4.1
with:
script-path: recipe.cake
target: releasenotes
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true
cake-version: tool-manifest
6 changes: 0 additions & 6 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
$ErrorActionPreference = 'Stop'

$SCRIPT_NAME = "recipe.cake"

Write-Host "Restoring .NET Core tools"
dotnet tool restore
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Running Build"
dotnet cake $SCRIPT_NAME @args
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ SCRIPT_NAME="recipe.cake"
echo "Restoring .NET Core tools"
dotnet tool restore

echo "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap

echo "Running Build"
dotnet cake $SCRIPT_NAME "$@"
6 changes: 1 addition & 5 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.1

#load nuget:?package=Cake.Recipe&version=3.0.1
Environment.SetVariableNames();

BuildParameters.SetParameters(context: Context,
Expand All @@ -10,16 +9,13 @@ BuildParameters.SetParameters(context: Context,
repositoryName: "Cake.FileHelpers",
appVeyorAccountName: "cakecontrib",
shouldRunDotNetCorePack: true,
shouldRunDupFinder: false,
shouldRunInspectCode: false,
shouldRunCodecov: false,
preferredBuildProviderType: BuildProviderType.GitHubActions);

BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(context: Context,
dupFinderExcludePattern: new string[] {
BuildParameters.RootDirectoryPath + "/Cake.FileHelpers.Tests/*.cs" },
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[FakeItEasy]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
Expand Down
12 changes: 6 additions & 6 deletions src/Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup >
<PackageReference Include="Cake.Testing" Version="2.0.0" />
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
<PackageReference Include="Cake.Testing" Version="3.0.0" />
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cake.FileHelpers\Cake.FileHelpers.csproj" />
Expand Down
8 changes: 4 additions & 4 deletions src/Cake.FileHelpers/Cake.FileHelpers.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand All @@ -23,10 +23,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />

<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
<PackageReference Include="CakeContrib.Guidelines" Version="1.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 7962e55

Please sign in to comment.