Skip to content

Commit

Permalink
Stop being fancy
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Dec 4, 2024
1 parent 83ffc48 commit ccef7eb
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 50 deletions.
25 changes: 25 additions & 0 deletions .github/actions/test-kitchen/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: 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
with:
suite: ${{ inputs.suite }}
os: ${{ inputs.os }}
94 changes: 44 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,72 +17,66 @@ jobs:
statuses: write
issues: write

integration-epel:
integration:
needs: lint-unit
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- "almalinux-8"
- "almalinux-9"
- "centos-stream-8"
- "centos-stream-9"
- "rockylinux-8"
- "rockylinux-9"
suite:
- "epel"
steps: &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
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
os: [
"almalinux-8",
"almalinux-9",
"amazonlinux-2023",
"centos-stream-8",
"centos-stream-9",
"debian-11",
"debian-12",
"rockylinux-8",
"rockylinux-9",
"ubuntu-2204",
"ubuntu-2404",
]
suite: ["distro", "repo", "repo-overrides"]
steps:
- uses: ./.github/actions/test-kitchen
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

integration-nginx-full:
integration-epel:
needs: lint-unit
runs-on: ubuntu-latest
strategy:
matrix:
os:
- "ubuntu-2204"
- "ubuntu-2404"
suite:
- "distro-nginx-full"
fail-fast: false
matrix:
os: [
"almalinux-8",
"almalinux-9",
"centos-stream-8",
"centos-stream-9",
"rockylinux-8",
"rockylinux-9",
]
suite: ["epel"]
steps:
<<: *steps
- uses: ./.github/actions/test-kitchen
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

integration:
integration-nginx-full:
needs: lint-unit
runs-on: ubuntu-latest
strategy:
matrix:
os:
- "almalinux-8"
- "almalinux-9"
- "amazonlinux-2023"
- "centos-stream-8"
- "centos-stream-9"
- "debian-11"
- "debian-12"
- "rockylinux-8"
- "rockylinux-9"
- "ubuntu-2204"
- "ubuntu-2404"
suite:
- "distro"
- "repo"
- "repo-overrides"
fail-fast: false
matrix:
os: ["ubuntu-2204", "ubuntu-2404"]
suite: ["distro-nginx-full"]
steps:
<<: *steps
- uses: ./.github/actions/test-kitchen
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

final:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ccef7eb

Please sign in to comment.