-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from b-dean/chef-version
allow the chef workstation version to be passed to install chef
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -21,6 +25,8 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
with: | ||
version: ${{ inputs.chef_workstation_version }} | ||
- name: Install Gems | ||
run: chef gem install -N "${{ inputs.gems }}" | ||
if: ${{ inputs.gems }} | ||
|
@@ -44,6 +50,8 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
with: | ||
version: ${{ inputs.chef_workstation_version }} | ||
- name: Run Cookstyle | ||
run: chef exec cookstyle --display-cop-names --extra-details | ||
env: | ||
|