Skip to content

Commit

Permalink
Merge pull request #25 from b-dean/chef-version
Browse files Browse the repository at this point in the history
allow the chef workstation version to be passed to install chef
  • Loading branch information
bmhughes committed May 21, 2023
2 parents f86af72 + c323c37 commit 89865ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint-unit.yml
Expand Up @@ -11,6 +11,10 @@ name: Lint & Unit test
required: false
type: string
default: "ubuntu-latest"
chef_workstation_version:
required: false
type: string
default: "latest"

jobs:
rspec:
Expand All @@ -21,6 +25,8 @@ jobs:
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/chef-install@2.0.4
with:
version: ${{ inputs.chef_workstation_version }}
- name: Install Gems
run: chef gem install -N "${{ inputs.gems }}"
if: ${{ inputs.gems }}
Expand All @@ -44,6 +50,8 @@ jobs:
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/chef-install@2.0.4
with:
version: ${{ inputs.chef_workstation_version }}
- name: Run Cookstyle
run: chef exec cookstyle --display-cop-names --extra-details
env:
Expand Down

0 comments on commit 89865ee

Please sign in to comment.