Skip to content

Commit

Permalink
GitHub Actions: add shellcheck to PR workflow
Browse files Browse the repository at this point in the history
This reports shellcheck output for *changed* lines. Preexisting problems are
not reported.
  • Loading branch information
zeha committed Nov 12, 2023
1 parent 9f52da5 commit 98f8ade
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# PR Review workflows.
# The intention is for these to only find *new* issues.

name: pr-review
on:
pull_request:
jobs:

shellcheck-code:
name: shellcheck grml-debootstrap
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: |
chroot-script
grml-debootstrap
config
tests/shellcheck-stub-debootstrap-variables
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: "."
pattern: |
tests/*
check_all_files_with_shebangs: "false"

0 comments on commit 98f8ade

Please sign in to comment.