Skip to content

Commit

Permalink
Update CI
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 ccef7eb commit 9c3e39c
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .github/actions/test-kitchen/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ inputs:
runs:
using: "composite"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Chef
uses: actionshub/[email protected]
- name: Dokken
Expand Down
74 changes: 50 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,42 +23,65 @@ jobs:
strategy:
fail-fast: false
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"]
os:
[
"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"]
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-8",
"centos-stream-9",
"rockylinux-8",
"rockylinux-9",
]
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 }}
Expand All @@ -73,15 +96,18 @@ jobs:
os: ["ubuntu-2204", "ubuntu-2404"]
suite: ["distro-nginx-full"]
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: ./.github/actions/test-kitchen
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

final:
runs-on: ubuntu-latest
needs: [integration, integration-nginx-full, integration-epel]
needs: [integration, integration-nginx-full, integration-epel, integration-repo-overrides]
steps:
- run: echo ${{needs.integration.outputs}}
- run: echo ${{needs.integration-nginx-full.outputs}}
- run: echo ${{needs.integration-epel.outputs}}
# - run: echo ${{needs.integration-repo-overrides.outputs}}
2 changes: 1 addition & 1 deletion kitchen.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ platforms:
- name: almalinux-8
- name: almalinux-9
- name: amazonlinux-2023
- name: centos-stream-9
- name: centos-stream-10
- name: debian-11
- name: debian-12
- name: fedora-latest
Expand Down
4 changes: 2 additions & 2 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ platforms:
- name: almalinux-9
- name: rockylinux-8
- name: rockylinux-9
- name: centos-stream-8
- name: centos-stream-9
- name: centos-stream-10
- name: debian-11
- name: debian-12
- name: fedora-latest
Expand Down Expand Up @@ -73,8 +73,8 @@ suites:
includes:
- almalinux-8
- almalinux-9
- centos-stream-8
- centos-stream-9
- centos-stream-10
- rockylinux-8
- rockylinux-9
verifier:
Expand Down

0 comments on commit 9c3e39c

Please sign in to comment.