Skip to content

Commit

Permalink
allow the chef workstation version to be passed to install chef
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Dean <ben.dean@finvi.com>
  • Loading branch information
b-dean committed May 20, 2023
1 parent f86af72 commit c323c37
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 c323c37

Please sign in to comment.