Skip to content

Commit

Permalink
GHA: setup shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 26, 2024
1 parent 273cd36 commit 697ac95
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# PR Review workflows.

name: pr-review
on:
workflow_dispatch:
pull_request:
push:
jobs:
shellcheck-code:
name: shellcheck main code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: |
grml-live
scripts/*.sh
remaster/grml-live-remaster
etc/grml/fai/config/hooks/*
etc/grml/fai/config/scripts/*
check_all_files_with_shebangs: "false"

shellcheck-tests:
name: shellcheck test scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: tests
pattern: |
*.sh
check_all_files_with_shebangs: "false"

0 comments on commit 697ac95

Please sign in to comment.