-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Configure renovate, Rubocop & release workflow - BREAKING CHANGE: Require Ruby 3.1 - Add test workflow - Add release workflow Signed-off-by: Dan Webb <[email protected]> * feat: Add workflows Signed-off-by: Dan Webb <[email protected]> --------- Signed-off-by: Dan Webb <[email protected]>
- Loading branch information
Showing
13 changed files
with
147 additions
and
90 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: Lint & Unit | ||
|
||
"on": | ||
pull_request: | ||
|
||
jobs: | ||
lint-unit: | ||
uses: test-kitchen/.github/.github/workflows/[email protected] |
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,35 @@ | ||
--- | ||
name: release-please | ||
|
||
"on": | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
release-type: ruby | ||
package-name: kitchen-vro | ||
version-file: lib/kitchen/driver/vro_version.rb | ||
token: ${{ secrets.PORTER_GITHUB_TOKEN }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
if: ${{ steps.release.outputs.release_created }} | ||
|
||
- name: Build and publish to GitHub Package | ||
uses: actionshub/publish-gem-to-github@main | ||
if: ${{ steps.release.outputs.release_created }} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
owner: ${{ secrets.OWNER }} | ||
|
||
- name: Build and publish to RubyGems | ||
uses: actionshub/publish-gem-to-rubygems@main | ||
if: ${{ steps.release.outputs.release_created }} | ||
with: | ||
token: ${{ secrets.RUBYGEMS_API_KEY }} |
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 @@ | ||
default: true | ||
MD013: false | ||
MD024: false | ||
MD026: false | ||
MD036: false | ||
MD012: false | ||
MD029: false | ||
MD004: false |
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,17 +1,11 @@ | ||
Metrics/AbcSize: | ||
Max: 50 | ||
Metrics/ClassLength: | ||
Max: 125 | ||
Metrics/LineLength: | ||
Max: 130 | ||
Metrics/MethodLength: | ||
Max: 25 | ||
Metrics/BlockLength: | ||
--- | ||
require: | ||
- chefstyle | ||
|
||
AllCops: | ||
TargetRubyVersion: 3.1 | ||
Include: | ||
- "**/*.rb" | ||
Exclude: | ||
- 'spec/vro_spec.rb' | ||
Style/Documentation: | ||
Enabled: false | ||
Style/SignalException: | ||
Enabled: false | ||
Style/SpaceInsideBrackets: | ||
Enabled: false | ||
- "vendor/**/*" | ||
- "spec/**/*" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in kitchen-vro.gemspec | ||
gemspec | ||
|
||
group :test do | ||
gem 'bundler' | ||
gem 'rake' | ||
gem 'rspec', '~> 3.2' | ||
gem 'webmock', '~> 1.21' | ||
end | ||
|
||
group :chefstyle do | ||
gem 'chefstyle', '~> 2.2', '>= 2.2.3' | ||
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,8 +1,16 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
RuboCop::RakeTask.new(:style) | ||
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." | ||
end | ||
|
||
task default: %i[spec style] | ||
RSpec::Core::RakeTask.new(:test) | ||
|
||
task default: %i{test style} |
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,29 +1,22 @@ | ||
# coding: utf-8 | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'kitchen/driver/vro_version' | ||
require "kitchen/driver/vro_version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'kitchen-vro' | ||
spec.name = "kitchen-vro" | ||
spec.version = Kitchen::Driver::VRO_VERSION | ||
spec.authors = ['Chef Partner Engineering'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = 'A Test Kitchen driver for VMware vRealize Orchestrator (vRO)' | ||
spec.authors = ["Test Kitchen Team"] | ||
spec.email = ["[email protected]"] | ||
spec.summary = "A Test Kitchen driver for VMware vRealize Orchestrator (vRO)" | ||
spec.description = spec.summary | ||
spec.homepage = 'https://github.com/chef-partners/kitchen-vro' | ||
spec.license = 'Apache 2.0' | ||
spec.homepage = "https://https://github.com/test-kitchen/kitchen-vro" | ||
spec.license = "Apache 2.0" | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = [] | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency 'test-kitchen', '~> 1.4', '>= 1.4.1' | ||
spec.add_dependency 'vcoworkflows', '~> 0.2' | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec', '~> 3.2' | ||
spec.add_development_dependency 'webmock', '~> 1.21' | ||
spec.add_development_dependency 'rubocop', '~> 0.49.0' | ||
spec.add_dependency "test-kitchen", "~> 1.4", "< 4" | ||
spec.add_dependency "vcoworkflows", "~> 0.2" | ||
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 |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
|
||
module Kitchen | ||
module Driver | ||
VRO_VERSION = '1.0.0'.freeze | ||
VRO_VERSION = "1.0.0".freeze | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
":disableDependencyDashboard", | ||
"schedule:automergeEarlyMondays" | ||
] | ||
} |