-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update release please configs (#498)
* fix: update release please configs --------- Signed-off-by: Corey Hemminger <[email protected]>
- Loading branch information
Showing
11 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
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,9 +1,38 @@ | ||
--- | ||
name: 'Test' | ||
name: 'Lint, Unit & Integration Tests' | ||
|
||
'on': | ||
pull_request: | ||
|
||
jobs: | ||
lint-unit: | ||
uses: test-kitchen/.github/.github/workflows/[email protected] | ||
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main | ||
|
||
integration: | ||
runs-on: ubuntu-latest | ||
needs: lint-unit | ||
name: Kitchen Verify | ||
strategy: | ||
matrix: | ||
ruby: ["3.3"] | ||
os: ["almalinux-9"] | ||
steps: | ||
- name: Install Vagrant VirtualBox | ||
run: | | ||
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | ||
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor | sudo tee /usr/share/keyrings/oracle-virtualbox-2016.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | ||
echo "deb [signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list | ||
sudo apt-get update | ||
sudo apt-get install -y software-properties-common vagrant virtualbox-7.0 | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Kitchen Verify | ||
run: | | ||
export LOGNAME=$USER | ||
bundle exec kitchen verify default-${{ matrix.os}} | ||
env: | ||
CHEF_LICENSE: "accept-no-persist" |
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,9 +1,6 @@ | ||
--- | ||
default: true | ||
MD004: false | ||
MD012: false | ||
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "1.14.2" | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ require: | |
- chefstyle | ||
|
||
AllCops: | ||
TargetRubyVersion: 3.0 | ||
Include: | ||
- "**/*.rb" | ||
Exclude: | ||
|
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,4 @@ | ||
--- | ||
|
||
rules: | ||
line-length: disable |
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
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,25 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: shell | ||
command: 'echo "Hello, World!"' | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: almalinux-9 | ||
- name: ubuntu-24.04 | ||
- name: windows-2022 | ||
driver: | ||
box: stromweld/windows-2022 | ||
customize: | ||
memory: 4096 | ||
|
||
suites: | ||
- name: default | ||
verifier: | ||
inspec_tests: | ||
- test/integration/default |
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,12 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"package-name": "kitchen-vagrant", | ||
"changelog-path": "CHANGELOG.md", | ||
"release-type": "ruby", | ||
"include-component-in-tag": false, | ||
"version-file": "lib/kitchen/driver/vagrant_version.rb" | ||
} | ||
}, | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |
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 @@ | ||
# Chef InSpec test for kitchen-vagrant | ||
|
||
# The Chef InSpec reference, with examples and extensive documentation, can be | ||
# found at https://docs.chef.io/inspec/resources/ | ||
|
||
user_name = os.windows? ? "Administrator" : "root" | ||
describe user(user_name) do | ||
it { should exist } | ||
end |