-
-
Notifications
You must be signed in to change notification settings - Fork 806
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
13 changed files
with
150 additions
and
159 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,23 @@ | ||
name: 'Test Kitchen Action' | ||
description: 'Runs Test Kitchen tests with the specified suite and OS' | ||
inputs: | ||
suite: | ||
description: 'Test suite to run' | ||
required: true | ||
os: | ||
description: 'OS to test on' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | ||
with: | ||
suite: ${{ inputs.suite }} | ||
os: ${{ inputs.os }} |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ name: ci | |
|
||
jobs: | ||
lint-unit: | ||
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@3.1.1 | ||
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@main | ||
permissions: | ||
actions: write | ||
checks: write | ||
|
@@ -21,96 +21,95 @@ jobs: | |
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- "almalinux-8" | ||
- "almalinux-9" | ||
- "amazonlinux-2023" | ||
- "centos-7" | ||
- "centos-stream-8" | ||
- "centos-stream-9" | ||
- "debian-10" | ||
- "debian-11" | ||
- "opensuse-leap-15" | ||
- "rockylinux-8" | ||
- "rockylinux-9" | ||
- "ubuntu-1804" | ||
- "ubuntu-2004" | ||
suite: | ||
- "distro" | ||
- "repo" | ||
- "repo-overrides" | ||
- "epel" | ||
- "nginx-full" | ||
[ | ||
"almalinux-8", | ||
"almalinux-9", | ||
"amazonlinux-2023", | ||
"centos-stream-9", | ||
"centos-stream-10", | ||
"debian-11", | ||
"debian-12", | ||
"rockylinux-8", | ||
"rockylinux-9", | ||
"ubuntu-2204", | ||
"ubuntu-2404", | ||
] | ||
suite: ["distro", "repo"] | ||
exclude: | ||
- os: "opensuse-leap-15" | ||
- os: "centos-stream-10" | ||
suite: "repo" | ||
- os: "centos-7" | ||
suite: "distro" | ||
- os: "amazonlinux-2023" | ||
suite: "epel" | ||
- os: "debian-9" | ||
suite: "epel" | ||
- os: "debian-10" | ||
suite: "epel" | ||
- os: "debian-11" | ||
suite: "epel" | ||
- os: "ubuntu-1804" | ||
suite: "epel" | ||
- os: "ubuntu-2004" | ||
suite: "epel" | ||
- os: "fedora-latest" | ||
suite: "epel" | ||
- os: "opensuse-leap-15" | ||
suite: "epel" | ||
- os: "amazonlinux-2023" | ||
suite: "nginx-full" | ||
- os: "centos-7" | ||
suite: "nginx-full" | ||
- os: "centos-stream-8" | ||
suite: "nginx-full" | ||
- os: "centos-stream-9" | ||
suite: "nginx-full" | ||
- os: "almalinux-8" | ||
suite: "nginx-full" | ||
- os: "almalinux-9" | ||
suite: "nginx-full" | ||
- os: "rockylinux-8" | ||
suite: "nginx-full" | ||
- os: "rockylinux-9" | ||
suite: "nginx-full" | ||
- os: "amazonlinux" | ||
suite: "nginx-full" | ||
- os: "debian-10" | ||
suite: "nginx-full" | ||
- os: "debian-11" | ||
suite: "nginx-full" | ||
- os: "fedora-latest" | ||
suite: "nginx-full" | ||
- os: "opensuse-leap-15" | ||
suite: "nginx-full" | ||
- os: "amazonlinux-2023" | ||
suite: "repo-overrides" | ||
- os: "centos-7" | ||
suite: "repo-overrides" | ||
- os: "debian-10" | ||
suite: "repo-overrides" | ||
- os: "opensuse-leap-15" | ||
suite: "repo-overrides" | ||
- os: "ubuntu-1804" | ||
suite: "repo-overrides" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
|
||
# TODO: This is currently broken | ||
# integration-repo-overrides: | ||
# needs: lint-unit | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: ["ubuntu-2204", "ubuntu-2404"] | ||
# suite: ["repo-overrides"] | ||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v4 | ||
# - uses: ./.github/actions/test-kitchen | ||
# with: | ||
# suite: ${{ matrix.suite }} | ||
# os: ${{ matrix.os }} | ||
|
||
integration-epel: | ||
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
[ | ||
"almalinux-8", | ||
"almalinux-9", | ||
"centos-stream-9", | ||
"centos-stream-10", | ||
"rockylinux-8", | ||
"rockylinux-9", | ||
] | ||
suite: ["epel"] | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
|
||
integration-nginx-full: | ||
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-2204", "ubuntu-2404"] | ||
suite: ["distro-nginx-full"] | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | ||
- uses: ./.github/actions/test-kitchen | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
|
||
final: | ||
runs-on: ubuntu-latest | ||
needs: [integration, integration-nginx-full, integration-epel] | ||
steps: | ||
- run: echo ${{needs.integration.outputs}} | ||
- run: echo ${{needs.integration-nginx-full.outputs}} | ||
- run: echo ${{needs.integration-epel.outputs}} |
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,2 @@ | ||
require: | ||
- cookstyle |
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
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
Oops, something went wrong.