Skip to content

Commit

Permalink
Merge pull request #135 from nils-a/release/3.0.0
Browse files Browse the repository at this point in the history
Release/3.0.0
  • Loading branch information
nils-a committed Dec 2, 2021
2 parents cdaa31b + 52516b3 commit 8de53b6
Show file tree
Hide file tree
Showing 19 changed files with 179 additions and 106 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
"bug",
"code"
]
},
{
"login": "DiDoHH",
"name": "DiDoHH",
"avatar_url": "https://avatars.githubusercontent.com/u/45682415?v=4",
"profile": "https://github.com/DiDoHH",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,
Expand Down
23 changes: 0 additions & 23 deletions .appveyor.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/dependabot.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "github>nils-a/renovate-config" ],
"packageRules": [
{
"matchPackageNames": ["cake.tool", "Cake.Core"],
"enabled": false
}
]
}
32 changes: 30 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,44 @@ jobs:
matrix:
os: [ windows-2019, ubuntu-18.04, macos-10.15 ]

env:
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
AZURE_USER: ${{ secrets.AZURE_USER }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
GPR_USER: ${{ secrets.GPR_USER }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
WYAM_DEPLOY_BRANCH: "gh-pages"
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}

steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- uses: actions/setup-dotnet@v1.9.0
with:
dotnet-version: |
2.1.818
3.1.x
5.0.x
6.0.x
- name: Cache Tools
uses: actions/cache@v2
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
path: .cake
key: ${{ runner.os }}-cake-${{ hashFiles('recipe.cake') }}
- name: Build project
uses: cake-build/cake-action@v1
with:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,19 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1.9.0
with:
dotnet-version: |
2.1.818
3.1.x
5.0.x
6.0.x
- name: Cache Tools
uses: actions/cache@v2
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
path: .cake
key: ${{ runner.os }}-cake-${{ hashFiles('recipe.cake') }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/dependabot-cake.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# GhostDoc plugin settings file
*.GhostDoc.xml

# Ignore cake tools directory, except packages.config
tools/*
# Ignore cake .cake directory, except packages.config
.cake/*

# Ignore build artifacts
BuildArtifacts/
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![standard-readme compliant][]][standard-readme]
[![All Contributors][all-contributors-badge]](#contributors)
[![Contributor Covenant][contrib-covenantimg]][contrib-covenant]
[![Appveyor build][appveyorimage]][appveyor]
[![Build][buildimage]][build]
[![Codecov Report][codecovimage]][codecov]
[![NuGet package][nugetimage]][nuget]

Expand Down Expand Up @@ -67,13 +67,15 @@ Thanks goes to these wonderful people ([emoji key][emoji-key]):
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="http://www.nils-andresen.de/"><img src="https://avatars3.githubusercontent.com/u/349188?v=4" width="100px;" alt=""/><br /><sub><b>Nils Andresen</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=nils-a" title="Code">💻</a> <a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=nils-a" title="Documentation">📖</a></td>
<td align="center"><a href="https://twitter.com/hereispascal"><img src="https://avatars1.githubusercontent.com/u/2190718?v=4" width="100px;" alt=""/><br /><sub><b>Pascal Berger</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.asciidoctorj/issues?q=author%3Apascalberger" title="Bug reports">🐛</a> <a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=pascalberger" title="Code">💻</a></td>
<td align="center"><a href="http://www.nils-andresen.de/"><img src="https://avatars3.githubusercontent.com/u/349188?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nils Andresen</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=nils-a" title="Code">💻</a> <a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=nils-a" title="Documentation">📖</a></td>
<td align="center"><a href="https://twitter.com/hereispascal"><img src="https://avatars1.githubusercontent.com/u/2190718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pascal Berger</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.asciidoctorj/issues?q=author%3Apascalberger" title="Bug reports">🐛</a> <a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=pascalberger" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/DiDoHH"><img src="https://avatars.githubusercontent.com/u/45682415?v=4?s=100" width="100px;" alt=""/><br /><sub><b>DiDoHH</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.asciidoctorj/commits?author=DiDoHH" title="Documentation">📖</a></td>
</tr>
</table>

<!-- markdownlint-enable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

## License
Expand All @@ -82,8 +84,8 @@ Thanks goes to these wonderful people ([emoji key][emoji-key]):

[all-contributors]: https://github.com/all-contributors/all-contributors
[all-contributors-badge]: https://img.shields.io/github/all-contributors/cake-contrib/cake.AsciiDoctorJ/develop?&style=flat-square
[appveyor]: https://ci.appveyor.com/project/cakecontrib/cake-asciidoctorj
[appveyorimage]: https://img.shields.io/appveyor/ci/cakecontrib/cake-asciidoctorj.svg?logo=appveyor&style=flat-square
[build]: https://github.com/cake-contrib/cake.asciidoctorj/actions/workflows/build.yml
[buildimage]: https://github.com/cake-contrib/cake.asciidoctorj/actions/workflows/build.yml/badge.svg
[codecov]: https://codecov.io/gh/cake-contrib/Cake.AsciiDoctorJ
[codecovimage]: https://img.shields.io/codecov/c/github/cake-contrib/Cake.AsciiDoctorJ.svg?logo=codecov&style=flat-square
[contrib-covenant]: https://www.contributor-covenant.org/version/2/0/code_of_conduct/
Expand Down
3 changes: 3 additions & 0 deletions cake.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
; to align with https://github.com/cake-build/cake/issues/3263
[Paths]
Tools=./.cake
8 changes: 8 additions & 0 deletions docs/input/_Bottom.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<a class="github-button" href="https://github.com/cake-contrib/cake.asciidoctorj" target="_blank">
<i class="fa fa-github"></i>
GitHub
</a>
<a class="discussion-button" href="https://github.com/cake-build/cake/discussions" target="_blank">
<i class="fa fa-github"></i>
Discussion
</a>
54 changes: 54 additions & 0 deletions docs/input/assets/css/override.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* For GitHub */
.bottom-footer {
margin-bottom: 40px !important; // Make room for GitHub buttons
}

.github-button {
z-index: 100;
position: fixed;
bottom: 0px;
right: 255px;
padding: 1em 3em;
background-color: #367fa9;
border: 0;
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
font-family: sans-serif;
font-size: 9pt;
text-transform: uppercase;
text-align: center;
text-decoration: none;
cursor: pointer;
cursor: hand;
-webkit-transition: all .3s ease;
transition: all .3s ease;
color: #fff;
a, a:active, a:hover, a:focus {
color: #fff;
}
}

.discussion-button {
z-index: 100;
position: fixed;
bottom: 0px;
right: 80px;
padding: 1em 3em;
background-color: #367fa9;
border: 0;
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
font-family: sans-serif;
font-size: 9pt;
text-transform: uppercase;
text-align: center;
text-decoration: none;
cursor: pointer;
cursor: hand;
-webkit-transition: all .3s ease;
transition: all .3s ease;
color: #fff;
a, a:active, a:hover, a:focus {
color: #fff;
}
}
7 changes: 6 additions & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#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

Environment.SetVariableNames();

BuildParameters.SetParameters(
Expand All @@ -12,7 +15,9 @@ BuildParameters.SetParameters(
repositoryName: "cake.asciidoctorj",
appVeyorAccountName: "cakecontrib",
shouldRunDotNetCorePack: true,
shouldUseDeterministicBuilds: true);
shouldUseDeterministicBuilds: true,
preferredBuildProviderType: BuildProviderType.GitHubActions,
preferredBuildAgentOperatingSystem: PlatformFamily.Linux);

BuildParameters.PrintParameters(Context);

Expand Down
12 changes: 6 additions & 6 deletions src/Cake.AsciiDoctorJ.Tests/AsciiDoctorJAliasesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Cake.AsciiDoctorJ.Tests.Fixtures;

using FluentAssertions;
using Shouldly;

using Xunit;

Expand All @@ -17,7 +17,7 @@ public void Should_throw_if_settings_are_null()
fixture.GivenSettingsIsNull();

Action action = () => fixture.Run();
action.Should().Throw<ArgumentNullException>().WithMessage("*settings*");
action.ShouldThrow<ArgumentNullException>().ParamName.ShouldBe("settings");
}

[Fact]
Expand All @@ -27,7 +27,7 @@ public void Should_not_throw_if_settings_are_set()

var actual = fixture.Run();

actual.Args.Should().Be("");
actual.Args.ShouldBe("");
}

[Fact]
Expand All @@ -38,7 +38,7 @@ public void Should_not_throw_if_settings_are_null_but_called_fluently()

var actual = fixture.RunFluent(x => { });

actual.Args.Should().Be("");
actual.Args.ShouldBe("");
}

[Fact]
Expand All @@ -48,7 +48,7 @@ public void Should_throw_if_context_is_null()
fixture.GivenContextIsNull();

Action action = () => fixture.Run();
action.Should().Throw<ArgumentNullException>().WithMessage("*context*");
action.ShouldThrow<ArgumentNullException>().ParamName.ShouldBe("context");
}

[Fact]
Expand All @@ -58,7 +58,7 @@ public void Should_throw_if_context_is_null_called_fluently()
fixture.GivenContextIsNull();

Action action = () => fixture.RunFluent(x => { });
action.Should().Throw<ArgumentNullException>().WithMessage("*context*");
action.ShouldThrow<ArgumentNullException>().ParamName.ShouldBe("context");
}
}
}

0 comments on commit 8de53b6

Please sign in to comment.