Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
7.0.0 (#516)
Browse files Browse the repository at this point in the history
* Update version to 7.0.0

* Download release artifact from last workflow run

* Clarify CHANGELOG entries
  • Loading branch information
aaron-lane authored Apr 9, 2023
1 parent f837b37 commit d0758ab
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 49 deletions.
94 changes: 54 additions & 40 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,31 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby-version }}'
bundler: '2.4'
ruby-version: "${{ matrix.ruby-version }}"
bundler: "2.4"
bundler-cache: true
cache-version: '1-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}'
cache-version:
"1-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}"
- name: Upload Bundler Lockfile
uses: actions/upload-artifact@v3
with:
name: bundler-lockfile-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}
name:
bundler-lockfile-os-${{ matrix.operating-system }}-rv-${{
matrix.ruby-version }}
path: gems.locked
if-no-files-found: error
strategy:
fail-fast: false
matrix:
include:
- operating-system: ubuntu
ruby-version: '3.0'
ruby-version: "3.0"
- operating-system: ubuntu
ruby-version: '3.1'
ruby-version: "3.1"
- operating-system: ubuntu
ruby-version: '3.2'
ruby-version: "3.2"
- operating-system: windows
ruby-version: '3.2'
ruby-version: "3.2"
commit-unit-test:
name: Commit - Unit Test
needs:
Expand All @@ -47,14 +50,17 @@ jobs:
- name: Download Bundler Lockfile
uses: actions/download-artifact@v3
with:
name: bundler-lockfile-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}
name:
bundler-lockfile-os-${{ matrix.operating-system }}-rv-${{
matrix.ruby-version }}
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby-version }}'
bundler: '2.4'
ruby-version: "${{ matrix.ruby-version }}"
bundler: "2.4"
bundler-cache: true
cache-version: '1-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}'
cache-version:
"1-os-${{ matrix.operating-system }}-rv-${{ matrix.ruby-version }}"
- name: Run RSpec Tests
if: ${{ !matrix.code-coverage }}
run: bundle exec rake test:rspec
Expand All @@ -71,16 +77,16 @@ jobs:
include:
- code-coverage: false
operating-system: ubuntu
ruby-version: '3.0'
ruby-version: "3.0"
- code-coverage: false
operating-system: ubuntu
ruby-version: '3.1'
ruby-version: "3.1"
- code-coverage: true
operating-system: ubuntu
ruby-version: '3.2'
ruby-version: "3.2"
- code-coverage: false
operating-system: windows
ruby-version: '3.2'
ruby-version: "3.2"
commit-assemble:
name: Commit - Assemble
needs:
Expand All @@ -97,10 +103,10 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler: '2.4'
ruby-version: "3.2"
bundler: "2.4"
bundler-cache: true
cache-version: '1-os-ubuntu-rv-3.2'
cache-version: "1-os-ubuntu-rv-3.2"
- name: Build Ruby Gem
env:
GEM_PRIVATE_KEY: ${{ secrets.GEM_PRIVATE_KEY }}
Expand Down Expand Up @@ -133,22 +139,26 @@ jobs:
- commit-unit-test
- commit-assemble
- commit-code-analysis
if: ${{ github.ref_type == 'branch' && github.event_name == 'push' && github.ref_name == 'main' }}
if:
${{ github.ref_type == 'branch' && github.event_name == 'push' &&
github.ref_name == 'main' }}
runs-on: ${{ matrix.operating-system }}-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
ruby-version: "3.2"
bundler-cache: false
- name: Download Ruby Gem
uses: actions/download-artifact@v3
with:
name: ruby-gem
- name: Install Ruby Gems
run: gem install --conservative --minimal-deps --verbose kitchen-terraform.gem rake
run:
gem install --conservative --minimal-deps --verbose
kitchen-terraform.gem rake
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
Expand Down Expand Up @@ -182,29 +192,33 @@ jobs:
matrix:
include:
- operating-system: macos
terraform-version: '1.1.4'
terragrunt-version: '0.36.0'
terraform-version: "1.1.4"
terragrunt-version: "0.36.0"
- operating-system: ubuntu
terraform-version: '0.15.5'
terraform-version: "0.15.5"
- operating-system: ubuntu
terraform-version: '0.14.11'
terraform-version: "0.14.11"
- operating-system: windows
terraform-version: '0.13.7'
terraform-version: "0.13.7"
release:
name: Release
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
runs-on: ubuntu-latest
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: false
- name: Download Ruby Gem Release Candidate
uses: actions/download-artifact@v3
with:
name: ruby-gem-release-candidate
- name: Publish Ruby Gem Release Candidate
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: gem push kitchen-terraform.gem
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: false
- name: Download Ruby Gem Release Candidate
uses: dawidd6/action-download-artifact@v2
with:
branch: main
commit: ${{ github.sha }}
event: push
name: ruby-gem-release-candidate
workflow_conclusion: success
- name: Publish Ruby Gem Release Candidate
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: gem push kitchen-terraform.gem
16 changes: 11 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ and this project adheres to

## [Unreleased][unreleased]

## [7.0.0] - 2023-04-09

### Added

- A Terraform transport plugin
- Support for Inspec < 6.0
- Support for the `kitchen doctor` command, which checks for deprecated
or invalid configuration attributes
or invalid configuration attributes.
- Support for Inspec < 6.0
- The `terraform` transport plugin which assumes responsibility from
the `terraform` driver plugin for interacting with the Terraform CLI. Use `kitchen doctor` for guidance on migrating
the relevant driver configuration to the transport.

### Changed

Expand All @@ -28,7 +32,8 @@ and this project adheres to
- Dropped support for InSpec 4.X which reached end of life on some
indeterminate date.
- Support for concurrency with the following commands was reintroduced:
`create`; `converge`; `setup`; `destroy`. Be safe and test quickly!
`create`; `converge`; `setup`; `destroy`. There is no protection against concurrently running multiple Kitchen
instances which use the same `root_module_directory`. Be safe and test quickly!

## [6.1.0] - 2022-01-22

Expand Down Expand Up @@ -805,7 +810,8 @@ Free-As-In-Beer
- Initial release

[unreleased]:
https://github.com/newcontext/kitchen-terraform/compare/v6.1.0...HEAD
https://github.com/newcontext/kitchen-terraform/compare/v7.0.0...HEAD
[7.0.0]: https://github.com/newcontext/kitchen-terraform/compare/v6.1.0...v7.0.0
[6.1.0]: https://github.com/newcontext/kitchen-terraform/compare/v6.0.0...v6.1.0
[6.0.0]: https://github.com/newcontext/kitchen-terraform/compare/v5.8.0...v6.0.0
[5.8.0]: https://github.com/newcontext/kitchen-terraform/compare/v5.7.2...v5.8.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ example.
---

```sh
gem install kitchen-terraform --version 6.1.0
gem install kitchen-terraform --version 7.0.0
```

---
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/terraform/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def temporarily_override(version:)

# @api private
def value
self.value = ::Gem::Version.new "6.1.0" if not @value
self.value = ::Gem::Version.new "7.0.0" if not @value
@value
end

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/kitchen/terraform/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

let :version do
::Gem::Version.new "6.1.0"
::Gem::Version.new "7.0.0"
end

describe ".assign_plugin_version" do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/kitchen/terraform/configurable_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

describe "@plugin_version" do
it "equals the gem version" do
expect(described_class.instance_variable_get(:@plugin_version)).to eq "6.1.0"
expect(described_class.instance_variable_get(:@plugin_version)).to eq "7.0.0"
end
end

Expand Down

0 comments on commit d0758ab

Please sign in to comment.