Merge remote-tracking branch 'remotes/origin/pr/277'
[grml-debootstrap.git] / .github / workflows / pr-review.yml
1 # PR Review workflows.
2 # The intention is for these to only find *new* issues.
3
4 name: pr-review
5 on:
6   workflow_dispatch:
7   pull_request:
8 jobs:
9
10   shellcheck-code:
11     name: shellcheck grml-debootstrap
12     runs-on: ubuntu-latest
13     steps:
14       - uses: actions/checkout@v4
15       - name: shellcheck
16         uses: reviewdog/action-shellcheck@v1
17         with:
18           github_token: ${{ secrets.github_token }}
19           reporter: github-pr-review
20           path: "."
21           pattern: |
22             chroot-script
23             grml-debootstrap
24             config
25             tests/shellcheck-stub-debootstrap-variables
26           check_all_files_with_shebangs: "false"
27
28   shellcheck-tests:
29     name: shellcheck test scripts
30     runs-on: ubuntu-latest
31     steps:
32       - uses: actions/checkout@v4
33       - name: shellcheck
34         uses: reviewdog/action-shellcheck@v1
35         with:
36           github_token: ${{ secrets.github_token }}
37           reporter: github-pr-review
38           path: tests
39           pattern: |
40             *
41           check_all_files_with_shebangs: "false"