Skip to content

Commit

Permalink
Add shellcheck
Browse files Browse the repository at this point in the history
This GH action checks (in every commit to main) the shell scripts. Will only flag `severity: error` level problems as failures. Feel free to add `warnings` as error too if you need so.
  • Loading branch information
leo8a committed Jun 14, 2022
1 parent 46acb9a commit 5d5c50f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test Incoming Changes

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC2068
with:
ignore_names: bashrc
severity: error

0 comments on commit 5d5c50f

Please sign in to comment.