From 83382b381da1ea2d6da0e44296e492dc4c6ceeef Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 30 May 2025 20:05:59 -0700 Subject: [PATCH 1/3] Support bundle without for cookstyle Signed-off-by: Tim Smith --- .github/workflows/lint-unit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint-unit.yml b/.github/workflows/lint-unit.yml index e5c18d7..ea34f4f 100644 --- a/.github/workflows/lint-unit.yml +++ b/.github/workflows/lint-unit.yml @@ -19,6 +19,7 @@ jobs: cookstyle: env: BUNDLE_WITH: ${{ inputs.bundle_with }} + BUNDLE_WITHOUT: ${{ inputs.bundle_without }} runs-on: ubuntu-latest strategy: fail-fast: false From 4f6bc248fd8973f58636948c209480470e22a53c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 30 May 2025 20:24:14 -0700 Subject: [PATCH 2/3] Update to Ruby 3.4 Signed-off-by: Tim Smith --- .github/workflows/lint-unit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-unit.yml b/.github/workflows/lint-unit.yml index ea34f4f..5bdc1e8 100644 --- a/.github/workflows/lint-unit.yml +++ b/.github/workflows/lint-unit.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.3"] + ruby: ["3.4"] name: Cookstyle/Chefstyle on Ruby steps: - name: Checkout code From a6bd7ee5fb5e7136915076dfb1d1b7510cdddc27 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 30 May 2025 20:27:32 -0700 Subject: [PATCH 3/3] Use bundle_only with cookstyle Signed-off-by: Tim Smith --- .github/workflows/lint-unit.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-unit.yml b/.github/workflows/lint-unit.yml index 5bdc1e8..3d383f5 100644 --- a/.github/workflows/lint-unit.yml +++ b/.github/workflows/lint-unit.yml @@ -5,7 +5,7 @@ name: Lint & Unit test workflow_call: inputs: bundle_with: - description: "Chose the bundler group name that Cookstyle is in" + description: "Choose the bundler group name that Cookstyle is in" type: "string" required: false default: "cookstyle" @@ -14,12 +14,16 @@ name: Lint & Unit test type: string required: false default: "development" + bundle_only: + description: "Bundle only the listed groups of Gems" + type: string + required: false + default: "cookstyle" jobs: cookstyle: env: - BUNDLE_WITH: ${{ inputs.bundle_with }} - BUNDLE_WITHOUT: ${{ inputs.bundle_without }} + BUNDLE_ONLY: ${{ inputs.bundle_only }} runs-on: ubuntu-latest strategy: fail-fast: false