Skip to content

Commit

Permalink
CI: Add SHELL check
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 4, 2024
1 parent e98499f commit 2aa6211
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint-shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: 🐶 SHELL check 🧪
on:
push:
branches: '**'
pull_request:
branches: '**'
workflow_dispatch:

jobs:
reviewdog:
permissions:
checks: write
contents: read
pull-requests: write
name: shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: haya14busa/action-cond@v1
id: reporter
with:
cond: ${{ github.event_name == 'pull_request' }}

- uses: reviewdog/action-shellcheck@v1
with:
reporter: ${{ steps.reporter.outputs.value }}
github_token: ${{ secrets.github_token }}
path: "."
check_all_files_with_shebangs: true
level: error
shellcheck_flags: '--external-sources --severity=error'

0 comments on commit 2aa6211

Please sign in to comment.