Skip to content

Commit

Permalink
Merge branch 'release/7.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Dec 9, 2021
2 parents b33faa9 + d6cfc34 commit 31691ae
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#---------------------------------#
# Build Image #
#---------------------------------#
image: Visual Studio 2019
image: Ubuntu

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

#---------------------------------#
# Tests
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ name: Build

on:
push:
branches:
- master
- develop
- "feature/**"
- "release/**"
- "hotfix/**"
tags:
- "*"
paths-ignore:
- "README.md"
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
os: [windows-latest, ubuntu-18.04, macos-latest]
Expand Down Expand Up @@ -39,6 +46,15 @@ jobs:

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

- name: Install .NET SDK
uses: actions/setup-dotnet@v1
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
- name: Cache Tools
uses: actions/cache@v2
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Install .NET SDK
uses: actions/setup-dotnet@v1
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
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-cake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
runs-on: ubuntu-18.04 # linux, because this is a docker-action
steps:
- name: check/update cake dependencies
uses: nils-org/dependabot-cake-action@v1
uses: nils-org/dependabot-cake-action@v1.1.0
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
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].9
uses: gittools/actions/gitversion/[email protected].11
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].9
uses: gittools/actions/gitversion/[email protected].11
- name: Create release branch ${{ github.event.inputs.version }}
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@ Please visit the Cake Documentation for a list of available aliases:

[http://cakebuild.net/dsl/json](http://cakebuild.net/dsl/json)

## Discussion

For questions and to discuss ideas & feature requests, use the [GitHub discussions on the Cake GitHub repository](https://github.com/cake-build/cake/discussions), under the [Extension Q&A](https://github.com/cake-build/cake/discussions/categories/extension-q-a) category.

[![Join in the discussion on the Cake repository](https://img.shields.io/badge/GitHub-Discussions-green?logo=github)](https://github.com/cake-build/cake/discussions)


## Apache License 2.0
Apache Cake.Json Copyright 2015. The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/).
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.0
#load nuget:?package=Cake.Recipe&version=2.2.1

Environment.SetVariableNames();

Expand Down
17 changes: 8 additions & 9 deletions src/Cake.Json.Tests/Cake.Json.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net50;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="1.0.0" />
<PackageReference Include="Cake.Testing" Version="1.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PackageReference Include="Cake.Core" Version="2.0.0" />
<PackageReference Include="Cake.Testing" Version="2.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NSubstitute" Version="4.2.1" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
7 changes: 6 additions & 1 deletion src/Cake.Json.Tests/FakeCakeArguments.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Cake.Core;
using System;
using System.Collections.Generic;

namespace Cake.Json.Tests
Expand Down Expand Up @@ -62,6 +62,11 @@ public ICollection<string> GetArguments(string name)
ICollection<string> collection = value;
return collection ?? Array.Empty<string>();
}

public IDictionary<string, ICollection<string>> GetArguments()
{
return _arguments as IDictionary<string, ICollection<string>>;
}
}
}

16 changes: 8 additions & 8 deletions src/Cake.Json/Cake.Json.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net50;netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
Expand All @@ -12,7 +12,7 @@
<Title>Cake.Json</Title>
<Summary>JSON Serialization and manipulation addon for cake build.</Summary>
<Description>Cake Build addon for JSON Serialization and manipulation.</Description>
<PackageTags>cake;script;build;cake-addin</PackageTags>
<PackageTags>cake;script;build;cake-addin;addin;cake-build</PackageTags>
<Authors>Redth</Authors>
<Owners>Redth, cake-contrib</Owners>
<RepositoryUrl>https://github.com/cake-contrib/Cake.Json.git</RepositoryUrl>
Expand All @@ -23,18 +23,18 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Cake.Addin.Analyzer" Version="0.1.1">
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Cake.Addin.Analyzer" Version="0.1.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CakeContrib.Guidelines" Version="0.5.0">
<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Binary file modified src/Cake.Json/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 31691ae

Please sign in to comment.