diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 3c1b5f4..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -version: 2 -updates: - - package-ecosystem: bundler - directory: "/" - schedule: - interval: weekly - open-pull-requests-limit: 5 - ignore: - - dependency-name: github_changelog_generator - versions: - - 1.16.0 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..09b400c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,9 @@ +--- +name: "Lint Unit" + +"on": + pull_request: + +jobs: + lint-unit: + uses: test-kitchen/.github/.github/workflows/lint-unit.yml@v0.1.2 diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml deleted file mode 100644 index 477dc6d..0000000 --- a/.github/workflows/linters.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: "Lint Unit" - -"on": - pull_request: - -jobs: - lint-unit: - uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main diff --git a/.github/workflows/please-release.yml b/.github/workflows/publish.yml similarity index 65% rename from .github/workflows/please-release.yml rename to .github/workflows/publish.yml index c799adb..a8df3fe 100644 --- a/.github/workflows/please-release.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,10 @@ --- +name: release-please + "on": push: branches: [main] -name: Release jobs: release-please: runs-on: ubuntu-latest @@ -14,19 +15,21 @@ jobs: release-type: ruby package-name: kitchen-hyperv version-file: lib/kitchen/driver/hyperv_version.rb - token: ${{ secrets.PUBLISH_WORKFLOW_TOKEN }} - signoff: "Dan Webb " - changelog-notes-type: github + 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 }} - uses: actionshub/publish-gem-to-github@v1.0.12 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 }} - uses: actionshub/publish-gem-to-rubygems@v1.0.3 with: - api_key: ${{ secrets.RUBYGEMS_API_KEY }} + token: ${{ secrets.RUBYGEMS_API_KEY }} diff --git a/.rubocop.yml b/.rubocop.yml index 9c64a18..46802c5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,10 +1,3 @@ ---- -Layout/LineLength: - Max: 100 - -Style/Documentation: - Enabled: false - require: - chefstyle diff --git a/Gemfile b/Gemfile index b9e23c2..d271db5 100644 --- a/Gemfile +++ b/Gemfile @@ -2,14 +2,18 @@ source "https://rubygems.org" gemspec -group :integration do +group :test do gem "berkshelf" gem "kitchen-inspec" gem "kitchen-dokken" gem "kitchen-vagrant" + gem "rake" + gem "minitest", "~> 5.3", "< 5.19" + gem "minitest-stub-const" + gem "mocha", "~> 2.0" end -group :debug do +group :development do gem "pry" gem "pry-byebug" gem "pry-stack_explorer" @@ -22,3 +26,4 @@ end group :docs do gem "yard" end + diff --git a/kitchen-hyperv.gemspec b/kitchen-hyperv.gemspec index dde837c..0175b6b 100644 --- a/kitchen-hyperv.gemspec +++ b/kitchen-hyperv.gemspec @@ -16,12 +16,7 @@ Gem::Specification.new do |spec| spec.files = %w{LICENSE kitchen-hyperv.gemspec Gemfile Rakefile support/hyperv.ps1} + Dir.glob("lib/**/*") spec.require_paths = ["lib"] - spec.required_ruby_version = ">= 2.6" - - spec.add_development_dependency "rake" - spec.add_development_dependency "minitest", "~> 5.3", "< 5.19" - spec.add_development_dependency "minitest-stub-const" - spec.add_development_dependency "mocha", "~> 2.0" + spec.required_ruby_version = ">= 3.1" spec.add_dependency "test-kitchen", ">= 1.4", "< 4" spec.add_dependency "train", "~> 3.5" diff --git a/renovate.json b/renovate.json index bd6a6b7..b65764b 100644 --- a/renovate.json +++ b/renovate.json @@ -1,16 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base", ":semanticCommits"], - "packageRules": [ - { - "groupName": "All Dependencies", - "matchUpdateTypes": ["minor", "patch", "pin"], - "automerge": true - }, - { - "groupName": "All dependencies (major)", - "matchUpdateTypes": ["major"], - "automerge": false - } + "extends": [ + "config:recommended", + ":disableDependencyDashboard", + "schedule:automergeEarlyMondays" ] }