From c2f4d1148de14988166c2415ef4015afe24efc55 Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Thu, 20 Jun 2024 22:39:23 -0500 Subject: [PATCH] fix: add release please configs (#146) * fix: add release please configs --------- Signed-off-by: Corey Hemminger --- .github/workflows/lint.yml | 4 ++-- .github/workflows/publish.yml | 5 +---- .markdownlint.yaml | 3 --- .release-please-manifest.json | 3 +++ .rubocop.yml | 2 +- CHANGELOG.md | 5 +++++ Gemfile | 2 +- release-please-config.json | 12 ++++++++++++ 8 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09b400c..c80c7c6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,9 @@ --- -name: "Lint Unit" +name: "Lint, Unit & Integration Tests" "on": pull_request: jobs: lint-unit: - uses: test-kitchen/.github/.github/workflows/lint-unit.yml@v0.1.2 + uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a8df3fe..d47a1b2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,12 +9,9 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 id: release with: - release-type: ruby - package-name: kitchen-hyperv - version-file: lib/kitchen/driver/hyperv_version.rb token: ${{ secrets.PORTER_GITHUB_TOKEN }} - name: Checkout diff --git a/.markdownlint.yaml b/.markdownlint.yaml index 8ba3469..17bc312 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -2,7 +2,4 @@ MD012: false MD013: false MD024: false -MD022: false -MD032: false MD034: false -MD036: false diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..7d9b009 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.10.0" +} diff --git a/.rubocop.yml b/.rubocop.yml index 46802c5..9909d8e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,8 +1,8 @@ +--- require: - chefstyle AllCops: - TargetRubyVersion: 3.1 Include: - "**/*.rb" Exclude: diff --git a/CHANGELOG.md b/CHANGELOG.md index 35f26d6..d74c099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ## 0.9.6 (2023-11-15) ## What's Changed + * Fix publishing step by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/130 * Add renovate config by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/131 * Revert "Add renovate config" by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/132 @@ -21,6 +22,7 @@ ## 0.9.5 (2023-08-24) ## What's Changed + * fix: Will this fix the publish step finally? by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/128 @@ -29,6 +31,7 @@ ## 0.9.4 (2023-08-24) ## What's Changed + * fix: Cleanup CI files by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/126 @@ -37,6 +40,7 @@ ## 0.9.3 (2023-08-24) ## What's Changed + * fix: Add missing leading slash to upload by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/124 @@ -45,6 +49,7 @@ ## 0.9.2 (2023-08-24) ## What's Changed + * Fix: Update publish containers by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/120 * fix: Tidy files by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/121 * fix: Add missing needs step by @damacus in https://github.com/test-kitchen/kitchen-hyperv/pull/123 diff --git a/Gemfile b/Gemfile index 2c7d058..cbbf8de 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ group :test do gem "kitchen-dokken" gem "kitchen-vagrant" gem "rake" - gem "minitest", "~> 5.3", "< 5.20.1" + gem "minitest", "~> 5.3", "< 6.0" gem "minitest-stub-const" gem "mocha", "~> 2.0" end diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..195f59b --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,12 @@ +{ + "packages": { + ".": { + "package-name": "kitchen-hyperv", + "changelog-path": "CHANGELOG.md", + "release-type": "ruby", + "include-component-in-tag": false, + "version-file": "lib/kitchen/driver/hyperv_version.rb" + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}