-
-
Notifications
You must be signed in to change notification settings - Fork 791
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 <[email protected]>
- 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/[email protected] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,104 +19,64 @@ jobs: | |
|
||
integration: | ||
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-2204 | ||
strategy: | ||
matrix: | ||
os: | ||
- "almalinux-8" | ||
- "debian-11" | ||
- "debian-12" | ||
- "rockylinux-8" | ||
- "rockylinux-9" | ||
- "ubuntu-2004" | ||
- "ubuntu-2204" | ||
- "ubuntu-2404" | ||
- almalinux-9 | ||
- almalinux-10 | ||
- amazonlinux-2023 | ||
- centos-stream-9 | ||
- centos-stream-10 | ||
- debian-11 | ||
- debian-12 | ||
- fedora-latest | ||
- opensuse-leap-15 | ||
- oraclelinux-8 | ||
- oraclelinux-9 | ||
- ubuntu-2204 | ||
- ubuntu-2404 | ||
suite: | ||
- "installation-script-main" | ||
- "installation-script-test" | ||
- "installation-package" | ||
- "installation-tarball" | ||
- "install-and-stop" | ||
exclude: | ||
- os: debian-11 | ||
suite: installation-script-test | ||
- os: debian-12 | ||
suite: installation-script-test | ||
- os: almalinux-8 | ||
suite: installation-script-main | ||
- os: almalinux-8 | ||
suite: installation-script-test | ||
- os: rockylinux-8 | ||
suite: installation-script-main | ||
- os: rockylinux-8 | ||
suite: installation-script-test | ||
- os: rockylinux-9 | ||
suite: installation-script-main | ||
- os: rockylinux-9 | ||
suite: installation-script-test | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_VERSION: latest | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | ||
- name: Test Kitchen | ||
uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
kitchen-yaml: kitchen.dokken.yml | ||
chef-version: latest | ||
chef-license: accept-no-persist | ||
|
||
integration-amazonlinux: | ||
integration-swarm: | ||
needs: lint-unit | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
os: | ||
- amazonlinux-2 | ||
suite: | ||
- "installation-tarball" | ||
- "install-and-stop" | ||
os: ["ubuntu-2204"] | ||
suite: ["swarm"] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_VERSION: latest | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | ||
- name: Setup VirtualBox & Vagrant | ||
uses: ./.github/actions/virtualbox-setup | ||
- name: Run Kitchen Tests | ||
uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
|
||
integration-swarm: | ||
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Install Docker | ||
uses: docker/setup-docker-action@v4 | ||
- name: Test Kitchen | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_VERSION: latest | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.exec.yml | ||
with: | ||
suite: swarm | ||
os: ubuntu-latest | ||
kitchen-yaml: kitchen.yml | ||
chef-version: latest | ||
chef-license: accept-no-persist | ||
|
||
integration-smoke: | ||
needs: lint-unit | ||
|
@@ -136,23 +96,18 @@ jobs: | |
suite: | ||
- "smoke" | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install VirtualBox & Vagrant | ||
run: | | ||
sudo apt update && sudo apt install virtualbox | ||
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 | ||
- name: Setup VirtualBox & Vagrant | ||
uses: ./.github/workflows/virtualbox-setup.yml | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_VERSION: latest | ||
CHEF_LICENSE: accept-no-persist | ||
- name: Test Kitchen | ||
uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
kitchen-yaml: kitchen.yml | ||
chef-version: latest | ||
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
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