Skip to content

Commit

Permalink
Merge pull request #116 from puppetlabs/CAT-2094-shellcheck_in_module_ci
Browse files Browse the repository at this point in the history
(CAT-2094) Add shellcheck to module_ci workflow
  • Loading branch information
jordanbreen28 authored Oct 15, 2024
2 parents 88e2fcb + dcee054 commit 96866b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/module_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
required: false
default: ''
type: "string"
run_shellcheck:
description: "Run shellcheck on all bash files"
required: false
default: false
type: "boolean"


jobs:
Expand Down Expand Up @@ -81,6 +86,15 @@ jobs:
bundle env
echo ::endgroup::
- name: "shellcheck"
uses: reviewdog/action-shellcheck@v1
if: |
inputs.run_shellcheck &&
inputs.runs_on == 'ubuntu-latest' &&
matrix.ruby_version == '3.2'
with:
check_all_files_with_shebangs: "true"

- name: "Run Static & Syntax Tests"
run: |
bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
Expand Down

0 comments on commit 96866b0

Please sign in to comment.