-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78fc870
commit b73d432
Showing
14 changed files
with
183 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
lint_and_unit: &lint_and_unit | ||
- delivery | ||
- danger | ||
- lint-yaml | ||
- lint-markdown | ||
version: 2.1 | ||
orbs: | ||
kitchen: sous-chefs/kitchen@2 | ||
workflows: | ||
kitchen: | ||
jobs: | ||
- kitchen/yamllint: | ||
name: lint-yaml | ||
- kitchen/mdlint: | ||
name: lint-markdown | ||
- kitchen/danger: | ||
name: danger | ||
context: Danger | ||
- kitchen/delivery: | ||
name: delivery | ||
- kitchen/dokken-single: | ||
name: default-amazonlinux | ||
suite: default-amazonlinux | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-amazonlinux-2 | ||
suite: default-amazonlinux-2 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-debian-9 | ||
suite: default-debian-9 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-debian-10 | ||
suite: default-debian-10 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-centos-6 | ||
suite: default-centos-6 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-centos-7 | ||
suite: default-centos-7 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-fedora-latest | ||
suite: default-fedora-latest | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-ubuntu-1604 | ||
suite: default-ubuntu-1604 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-ubuntu-1804 | ||
suite: default-ubuntu-1804 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-opensuse-leap-42 | ||
suite: default-opensuse-leap-42 | ||
requires: *lint_and_unit | ||
- kitchen/dokken-single: | ||
name: default-opensuse-leap-15 | ||
suite: default-opensuse-leap-15 | ||
requires: *lint_and_unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules "~MD013", "~MD024", "~MD033" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Please refer to | ||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD | ||
<https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Reference: http://danger.systems/reference.html | ||
|
||
# A pull request summary is required. Add a description of the pull request purpose. | ||
# Changelog must be updated for each pull request that changes code. | ||
# Warnings will be issued for: | ||
# Pull request with more than 400 lines of code changed | ||
# Pull reqest that change more than 5 lines without test changes | ||
# Failures will be issued for: | ||
# Pull request without summary | ||
# Pull requests with code changes without changelog entry | ||
|
||
def code_changes? | ||
code = %w(libraries attributes recipes resources files templates) | ||
code.each do |location| | ||
return true unless git.modified_files.grep(/#{location}/).empty? | ||
end | ||
false | ||
end | ||
|
||
def test_changes? | ||
tests = %w(spec test .kitchen.yml .kitchen.dokken.yml) | ||
tests.each do |location| | ||
return true unless git.modified_files.grep(/#{location}/).empty? | ||
end | ||
false | ||
end | ||
|
||
failure 'Please provide a summary of your Pull Request.' if github.pr_body.length < 10 | ||
|
||
warn 'This is a big Pull Request.' if git.lines_of_code > 400 | ||
|
||
# Require a CHANGELOG entry for non-test changes. | ||
if !git.modified_files.include?('CHANGELOG.md') && code_changes? | ||
failure 'Please include a CHANGELOG entry.' | ||
end | ||
|
||
# A sanity check for tests. | ||
if git.lines_of_code > 5 && code_changes? && !test_changes? | ||
warn 'This Pull Request is probably missing tests.' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Please refer to | ||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD | ||
<https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,8 @@ | |
maintainer_email '[email protected]' | ||
license 'Apache-2.0' | ||
description 'Installs and configures fail2ban' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version '6.0.0' | ||
|
||
recipe 'default', 'Installs and configures fail2ban' | ||
version '6.0.0' | ||
|
||
depends 'yum-epel' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.