Skip to content

Commit

Permalink
Merge pull request #114 from puppetlabs/CAT-2013-Implement_shellcheck…
Browse files Browse the repository at this point in the history
…_in_ci

(CAT-2013) Implement shellcheck in ci workflow
  • Loading branch information
jordanbreen28 authored Oct 8, 2024
2 parents 3eba50e + a2d8c97 commit 0732075
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/gem_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
required: false
default: "ubuntu-latest"
type: "string"
run_shellcheck:
description: "Run shellcheck on all bash files"
required: false
default: false
type: "boolean"

jobs:
spec:
Expand All @@ -39,6 +44,14 @@ jobs:
uses: "actions/checkout@v4"
with:
fetch-depth: 1
- name: "shellcheck"
uses: reviewdog/action-shellcheck@v1
if: |
inputs.run_shellcheck &&
inputs.ruby_version == '3.2' &&
inputs.runs_on == 'ubuntu-latest'
with:
check_all_files_with_shebangs: "true"

- name: "export environment"
run: |
Expand Down

0 comments on commit 0732075

Please sign in to comment.