-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Release gem to GitHub - Bumps version using please-release - Use the standard Rakefile Remove changelog generator and docs that we are no longer using Signed-off-by: Dan Webb <dan.webb@damacus.io>
- Loading branch information
Showing
17 changed files
with
139 additions
and
106 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
@test-kitchen/maintainers |
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,11 +1,12 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: github_changelog_generator | ||
versions: | ||
- 1.16.0 | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: github_changelog_generator | ||
versions: | ||
- 1.16.0 |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: 'Test' | ||
'on': | ||
pull_request: | ||
|
||
jobs: | ||
lint-unit: | ||
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main |
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,16 @@ | ||
--- | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
|
||
name: release-please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: ruby | ||
package-name: kitchen-vra | ||
version-file: lib/kitchen/driver/vra_version.rb |
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,17 @@ | ||
--- | ||
name: Publish | ||
|
||
'on': | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and publish gem | ||
uses: jstastny/publish-gem-to-github@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
owner: ${{ secrets.OWNER }} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config: | ||
ul-indent: false # MD007 | ||
line-length: false # MD013 | ||
no-duplicate-heading: false # MD024 |
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,15 @@ | ||
--- | ||
extends: default | ||
rules: | ||
line-length: | ||
max: 256 | ||
level: warning | ||
document-start: disable | ||
braces: | ||
forbid: false | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
min-spaces-inside-empty: -1 | ||
max-spaces-inside-empty: -1 | ||
comments: | ||
min-spaces-from-content: 1 |
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
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,57 +1,19 @@ | ||
require "bundler/gem_tasks" | ||
require "chefstyle" | ||
require "rubocop/rake_task" | ||
require "rspec/core/rake_task" | ||
|
||
require "rake/testtask" | ||
Rake::TestTask.new(:unit) do |t| | ||
t.libs.push "lib" | ||
t.test_files = FileList["spec/**/*_spec.rb"] | ||
t.verbose = true | ||
RuboCop::RakeTask.new(:style) do |task| | ||
task.options += ["--display-cop-names", "--no-color"] | ||
end | ||
|
||
task test: :unit | ||
RSpec::Core::RakeTask.new(:test) | ||
|
||
begin | ||
require "chefstyle" | ||
require "rubocop/rake_task" | ||
RuboCop::RakeTask.new(:style) do |task| | ||
task.options += ["--display-cop-names", "--no-color"] | ||
end | ||
rescue LoadError | ||
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking." | ||
RSpec::Core::RakeTask.new do |task| | ||
# test_dir = Rake.application.original_dir | ||
# task.pattern = "#{test_dir}/*_spec.rb" | ||
# task.rspec_opts = [ "-I#{test_dir}", "-I#{test_dir}/source", '-f documentation', '-r ./rspec_config'] | ||
task.verbose = false | ||
end | ||
|
||
desc "Run all quality tasks" | ||
task quality: :style | ||
|
||
begin | ||
require "yard" unless defined?(YARD) | ||
YARD::Rake::YardocTask.new | ||
rescue LoadError | ||
puts "yard is not available. (sudo) gem install yard to generate yard documentation." | ||
end | ||
|
||
task default: %i{test quality} | ||
|
||
begin | ||
require "github_changelog_generator/task" | ||
require "kitchen/verifier/pester_version" | ||
|
||
GitHubChangelogGenerator::RakeTask.new :changelog do |config| | ||
config.future_release = "v#{Kitchen::Verifier::PESTER_VERSION}" | ||
config.issues = false | ||
config.pulls = true | ||
config.user = "test-kitchen" | ||
config.project = "kitchen-pester" | ||
end | ||
rescue LoadError | ||
puts "github_changelog_generator is not available." \ | ||
" (sudo) gem install github_changelog_generator to generate changelogs" | ||
end | ||
|
||
namespace :docs do | ||
desc "Deploy docs" | ||
task :deploy do | ||
sh "cd docs && hugo" | ||
sh "aws --profile chef-cd s3 sync docs/public s3://test-kitchen-legacy.cd.chef.co --delete --acl public-read" | ||
sh "aws --profile chef-cd cloudfront create-invalidation --distribution-id EQD8MRW086SRT --paths '/*'" | ||
end | ||
end | ||
task default: %i{test style} |
Oops, something went wrong.