Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Jul 17, 2023
2 parents e5524e0 + 2782694 commit d101f88
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 36 deletions.
15 changes: 12 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
image: Visual Studio 2022

#---------------------------------#
# Build Script #
# Install .NET #
#---------------------------------#
install:
# Update to latest NuGet version since we require 5.3.0 for embedded icon
- ps: nuget update -self
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.405 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.102 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

#---------------------------------#
# Build Script #
#---------------------------------#
build_script:
- ps: .\build.ps1 --target=CI

Expand Down
15 changes: 5 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,12 @@ updates:
open-pull-requests-limit: 10
ignore:
- dependency-name: Cake.Core
versions:
- "(,3.0)"
update-types: ["version-update:semver-minor"]
- dependency-name: Cake.Testing
versions:
- "(,3.0)"
update-types: ["version-update:semver-minor"]
- dependency-name: Cake.Issues
versions:
- "> 1.0.0, < 2"
update-types: ["version-update:semver-minor"]
- dependency-name: Cake.Issues.PullRequests
versions:
- "> 1.0.0, < 2"
update-types: ["version-update:semver-minor"]
- dependency-name: Cake.Issues.Testing
versions:
- "> 1.0.0, < 2"
update-types: ["version-update:semver-minor"]
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ jobs:
uses: actions/checkout@v2
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
# .NET 5 required for GitVersion
dotnet-version: |
5.x
6.x
7.x
- name: Build
run: .\build.ps1
shell: powershell
Expand All @@ -31,6 +39,11 @@ jobs:
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.x
- name: Run integration tests
run: ./build.ps1 --verbosity=diagnostic
working-directory: ./tests/integration/
Expand Down
13 changes: 13 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,18 @@ jobs:
pool:
vmImage: 'windows-2022'
steps:
# .NET 5 required for GitVersion
- task: UseDotNet@2
inputs:
version: '5.x'
displayName: 'Install .NET 5'
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
- task: UseDotNet@2
inputs:
version: '7.x'
displayName: 'Install .NET 7'
- powershell: ./build.ps1
displayName: 'Cake Build'
11 changes: 4 additions & 7 deletions nuspec/nuget/Cake.Issues.PullRequests.GitHubActions.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions"/>
<copyright>Copyright © Pascal Berger</copyright>
<tags>cake cake-addin cake-issues cake-pullrequestsystem issues pullrequest buildserver github github-actions</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions/releases/tag/2.0.0</releaseNotes>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions/releases/tag/3.0.0</releaseNotes>
</metadata>
<files>
<file src="..\..\..\..\nuspec\nuget\icon.png" target="" />
<file src="netcoreapp3.1\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\netcoreapp3.1" />
<file src="netcoreapp3.1\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\netcoreapp3.1" />
<file src="netcoreapp3.1\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\netcoreapp3.1" />
<file src="net5.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net5.0" />
<file src="net5.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net5.0" />
<file src="net5.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net5.0" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net6.0" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net6.0" />
<file src="net6.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net6.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net7.0" />
</files>
</package>
1 change: 1 addition & 0 deletions recipe.cake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ BuildParameters.SetParameters(
repositoryName: "Cake.Issues.PullRequests.GitHubActions",
appVeyorAccountName: "cakecontrib",
shouldRunCoveralls: false, // Disabled because it's currently failing
shouldPostToGitter: false, // Disabled because it's currently failing
shouldGenerateDocumentation: false);

BuildParameters.PrintParameters(Context);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<Product>Cake.Issues</Product>
<Copyright>Copyright © Pascal Berger and contributors</Copyright>
Expand All @@ -14,12 +14,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Issues.Testing" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="Cake.Testing" Version="2.0.0" />
<PackageReference Include="Shouldly" Version="4.0.3" />
<PackageReference Include="Cake.Issues.Testing" Version="3.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
<PackageReference Include="Cake.Testing" Version="3.0.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<Description>Addin for writing code analyzer or linter issues to GitHub Actions</Description>
<Authors>Pascal Berger</Authors>
<Copyright>Copyright © Pascal Berger and contributors</Copyright>
Expand All @@ -16,10 +16,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" />
<PackageReference Include="Cake.Issues" Version="2.0.0" />
<PackageReference Include="Cake.Issues.PullRequests" Version="2.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PackageReference Include="Cake.Core" Version="3.0.0" />
<PackageReference Include="Cake.Issues" Version="3.0.0" />
<PackageReference Include="Cake.Issues.PullRequests" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/.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": "2.0.0",
"version": "3.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ Task("Build")
.CombineWithFilePath("ClassLibrary1.sln");

#if NETCOREAPP
DotNetCoreRestore(solutionFile.FullPath);
DotNetRestore(solutionFile.FullPath);

var settings =
new DotNetCoreMSBuildSettings()
new DotNetMSBuildSettings()
.WithTarget("Rebuild")
.WithLogger(
"BinaryLogger," + Context.Tools.Resolve("Cake.Issues.MsBuild*/**/StructuredLogger.dll"),
"",
msBuildLogPath.FullPath
);

DotNetCoreBuild(
DotNetBuild(
solutionFile.FullPath,
new DotNetCoreBuildSettings
new DotNetBuildSettings
{
MSBuildSettings = settings
});
Expand Down

0 comments on commit d101f88

Please sign in to comment.