Skip to content

Commit

Permalink
Merge pull request #277 from nils-a/release/2.0.0
Browse files Browse the repository at this point in the history
Release/2.0.0
  • Loading branch information
nils-a authored Nov 15, 2022
2 parents 8811787 + f49045b commit 26c37b6
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 68 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
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "github>nils-a/renovate-config" ],
"extends": [ "github>nils-a/renovate-config:testing" ],
"packageRules": [
{
"matchPackageNames": ["cake.tool", "Cake.Core"],
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@ jobs:
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}

steps:
- name: Checkout the repository
uses: actions/checkout@v2.4.0
- name: Checkout the repository
uses: actions/checkout@v3.1.0
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- uses: actions/setup-dotnet@v1.9.0
- uses: actions/setup-dotnet@v3.0.3
with:
# codecov needs 2.1, unittests needs 3.1, gitversion needs 5.0
dotnet-version: |
2.1.818
3.1.x
5.0.x
6.0.x
7.0.x
- name: Cache Tools
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.11
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Build project
uses: cake-build/cake-action@v1.4.0
uses: cake-build/cake-action@v1.4.1
with:
script-path: recipe.cake
target: CI
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true
cake-version: 1.3.0
- name: Upload Issues
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.1
with:
if-no-files-found: warn
name: ${{ matrix.os }} Issues
path: |
BuildArtifacts/report.html
BuildArtifacts/**/coverlet/*.xml
- name: Upload Packages
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.1
if: runner.os == 'Windows'
with:
if-no-files-found: warn
name: package
path: BuildArtifacts/Packages/**/*
path: BuildArtifacts/Packages/**/*
34 changes: 17 additions & 17 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,41 +29,41 @@ jobs:
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout the repository
uses: actions/checkout@v2.4.0
- name: Checkout the repository
uses: actions/checkout@v3.1.0
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- uses: actions/setup-dotnet@v1.9.0
with:
# codecov needs 2.1, unittests needs 3.1, gitversion needs 5.0
dotnet-version: |
2.1.818
3.1.x
5.0.x
6.0.x
- uses: actions/setup-dotnet@v3.0.3
with:
# codecov needs 2.1, unittests needs 3.1, gitversion needs 5.0
dotnet-version: |
2.1.818
3.1.x
5.0.x
6.0.x
7.0.x
- name: Cache Tools
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.11
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

# 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.
# By default, queries listed here will override any specified in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Build project
uses: cake-build/cake-action@v1.4.0
uses: cake-build/cake-action@v1.4.1
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: 0.38.5
cake-bootstrap: true
cake-version: 1.3.0

- 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,19 +15,18 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3.1.0
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Cache Tools
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.11
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Publishing documentaiton
uses: cake-build/cake-action@v1.4.0
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: 1.3.0
4 changes: 2 additions & 2 deletions demo/frosting/build/Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cake.Frosting" Version="2.0.0" />
<PackageReference Include="Cake.Npm" Version="1.0.0" />
<PackageReference Include="Cake.Frosting" Version="3.0.0" />
<PackageReference Include="Cake.Npm" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="Cake.ESLint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
Expand Down
2 changes: 1 addition & 1 deletion demo/frosting/src2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"eslint": "8.4.0"
"eslint": "8.27.0"
}
}
2 changes: 1 addition & 1 deletion demo/script/build.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#addin nuget:?package=Cake.Npm&version=1.0.0
#addin nuget:?package=Cake.Npm&version=2.0.0
#r "..\..\src\Cake.ESLint\bin\Debug\net6.0\Cake.ESLint.dll"

///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion demo/script/src2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"eslint": "8.4.0"
"eslint": "8.27.0"
}
}
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"allowPrerelease": true,
"version": "6.0.100-rc.2",
"version": "7.0.100",
"rollForward": "latestFeature"
}
}
}
10 changes: 1 addition & 9 deletions recipe.cake
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.1

// Workaround for https://github.com/cake-contrib/Cake.Recipe/issues/854
#tool nuget:?package=NuGet.CommandLine&version=5.8.1
#load nuget:?package=Cake.Recipe&version=3.0.1

Environment.SetVariableNames();

Expand All @@ -19,11 +16,6 @@ BuildParameters.SetParameters(

BuildParameters.PrintParameters(Context);


// workaround for https://github.com/cake-contrib/Cake.Recipe/issues/862
ToolSettings.SetToolPreprocessorDirectives(
reSharperTools: "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2021.2.0");

ToolSettings.SetToolSettings(context: Context);

Build.RunDotNetCore();
25 changes: 16 additions & 9 deletions src/Cake.ESLint.Tests/Cake.ESLint.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<!--
Fool Cake.Incubator into thinking we're building agains netcoreapp3.1.
This is done to make Cake.Recipe avoid using OpenCover.
Remove this hack if Cake.Recipe bumps the usage of Cake.Incubator to version 7.0.0
-->
<TargetFrameworks Condition="false">netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;SA1600</NoWarn>

<IsPackable>false</IsPackable>
</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="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="Shouldly" Version="4.0.3" />
<PackageReference Include="Verify.Xunit" Version="14.7.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="Shouldly" Version="4.1.0" />
<PackageReference Include="Verify.Xunit" Version="19.1.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
Arguments: [
{}
],
WorkingDirectory: /Working
WorkingDirectory: /Working,
NoWorkingDirectory: false,
RedirectStandardError: false,
RedirectStandardOutput: false,
Silent: false
},
Args: "**/*"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
Path: /Working/tools/eslint,
Process: {
WorkingDirectory: /Working
WorkingDirectory: /Working,
NoWorkingDirectory: false,
RedirectStandardError: false,
RedirectStandardOutput: false,
Silent: false
},
Args:
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
Path: /Working/tools/eslint,
Process: {
WorkingDirectory: /Working
WorkingDirectory: /Working,
NoWorkingDirectory: false,
RedirectStandardError: false,
RedirectStandardOutput: false,
Silent: false
},
Args:
}
}
6 changes: 3 additions & 3 deletions src/Cake.ESLint/Cake.ESLint.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>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
Expand Down Expand Up @@ -32,8 +32,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<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 26c37b6

Please sign in to comment.