Skip to content

Commit

Permalink
fix: release please configs
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
  • Loading branch information
Stromweld committed Jun 21, 2024
1 parent 71a2287 commit b014c10
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 30 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@test-kitchen/maintainers
22 changes: 0 additions & 22 deletions .github/workflows/ci.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: 'Lint, Unit & Integration Tests'

'on':
pull_request:

jobs:
lint-unit:
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: release-please

"on":
push:
branches: [main]

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
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 }}
6 changes: 6 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
default: true
MD004: false
MD012: false
MD013: false
MD024: false
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "6.2.0"
}
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
require:
- chefstyle

AllCops:
TargetRubyVersion: 3.1

Check failure on line 6 in .rubocop.yml

View workflow job for this annotation

GitHub Actions / lint-unit / yamllint

6:4 [indentation] wrong indentation: expected 2 but found 3
Include:

Check failure on line 7 in .rubocop.yml

View workflow job for this annotation

GitHub Actions / lint-unit / yamllint

7:3 syntax error: expected <block end>, but found '<block mapping start>' (syntax)
- "**/*.rb"
Exclude:
- "vendor/**/*"
- "spec/**/*"
15 changes: 15 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,18 @@ source "https://rubygems.org"

# Specify your gem's dependencies in kitchen-openstack.gemspec
gemspec

group :test do
gem "rake"
gem "kitchen-inspec"
gem "rspec", "~> 3.2"
gem "countloc"
end

group :debug do
gem "pry"
end

group :chefstyle do
gem "chefstyle", "2.2.3"
end
9 changes: 1 addition & 8 deletions kitchen-openstack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,9 @@ Gem::Specification.new do |spec|
spec.files = Dir["LICENSE", "README.md", "lib/**/*"]
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.6.0"
spec.required_ruby_version = ">= 3.1"

spec.add_dependency "test-kitchen", ">= 1.4.1", "< 4"
spec.add_dependency "fog-openstack", "~> 1.0"
spec.add_dependency "ohai"

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "chefstyle"
spec.add_development_dependency "countloc"
spec.add_development_dependency "rspec"
spec.add_development_dependency "github_changelog_generator"
end
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packages": {
".": {
"package-name": "kitchen-openstack",
"changelog-path": "CHANGELOG.md",
"release-type": "ruby",
"include-component-in-tag": false,
"version-file": "lib/kitchen/driver/openstack_version.rb"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit b014c10

Please sign in to comment.