-
-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dan Webb <dan.webb@damacus.io>
- Loading branch information
Showing
6 changed files
with
131 additions
and
98 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 'Run Test Kitchen' | ||
description: 'Runs Test Kitchen tests with configurable options' | ||
|
||
inputs: | ||
suite: | ||
description: 'Test Kitchen suite to run' | ||
required: true | ||
os: | ||
description: 'Operating system to test' | ||
required: true | ||
kitchen-yaml: | ||
description: 'Kitchen YAML file to use' | ||
required: false | ||
default: 'kitchen.dokken.yml' | ||
chef-version: | ||
description: 'Chef version to use' | ||
required: false | ||
default: 'latest' | ||
chef-license: | ||
description: 'Chef license acceptance' | ||
required: false | ||
default: 'accept-no-persist' | ||
kitchen-command: | ||
description: 'Kitchen command to run (test, verify, etc)' | ||
required: false | ||
default: 'test' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Chef | ||
uses: actionshub/chef-install@3.0.1 | ||
with: | ||
version: ${{ inputs.chef-version }} | ||
|
||
- name: Run Test Kitchen | ||
shell: bash | ||
run: | ||
kitchen ${{ inputs.kitchen-command }} ${{ inputs.suite }}-${{ inputs.os }} | ||
env: | ||
CHEF_LICENSE: ${{ inputs.chef-license }} | ||
KITCHEN_LOCAL_YAML: ${{ inputs.kitchen-yaml }} | ||
KITCHEN_YAML: ${{ inputs.kitchen-yaml }} |
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,23 @@ | ||
name: 'Setup VirtualBox & Vagrant' | ||
description: 'Installs VirtualBox and Vagrant on Ubuntu runners' | ||
|
||
inputs: | ||
virtualbox-version: | ||
description: 'Version of VirtualBox to install' | ||
required: false | ||
default: '*' | ||
vagrant-version: | ||
description: 'Version of Vagrant to install' | ||
required: false | ||
default: 'latest' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install VirtualBox & Vagrant | ||
shell: bash | ||
run: | | ||
sudo apt update && sudo apt install virtualbox -y | ||
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.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 | ||
sudo apt update && sudo apt install vagrant |
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
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