Skip to content

Commit

Permalink
Switch from chefstyle to cookstyle with the chefstyle flag (#24)
Browse files Browse the repository at this point in the history
Chefstyle is no longer maintained

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Dec 2, 2024
1 parent 56d960f commit 0aaab7b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ name: Lint & Unit test
workflow_call:
inputs:
bundle_with:
description: "Chose the bundler group name that Chefstyle is in"
description: "Chose the bundler group name that Cookstyle is in"
type: "string"
required: false
default: "chefstyle"
default: "cookstyle"
bundle_without:
description: "Bundle without the listed groups of Gems"
type: string
required: false
default: "development"

jobs:
chefstyle:
cookstyle:
env:
BUNDLE_WITH: ${{ inputs.bundle_with }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.3"]
name: Chefstyle on Ruby
name: Cookstyle/Chefstyle on Ruby
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -44,9 +44,9 @@ jobs:
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1
if: steps.check.outputs.gemfile == 'true'
- name: Chef Style
- name: Cookstyle
if: steps.check.outputs.gemfile == 'true'
run: bundle exec chefstyle
run: bundle exec cookstyle --chefstyle

yamllint:
runs-on: ubuntu-latest
Expand All @@ -71,7 +71,7 @@ jobs:
test:
name: Unit Test with Ruby
runs-on: ubuntu-latest
needs: [yamllint, chefstyle]
needs: [yamllint, cookstyle]
env:
BUNDLE_WITHOUT: ${{ inputs.bundle_without }}
strategy:
Expand Down

0 comments on commit 0aaab7b

Please sign in to comment.