Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow the chef workstation version to be passed to install chef #25

Merged
merged 1 commit into from May 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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