21 lines
552 B
YAML
21 lines
552 B
YAML
name: "(CI) Shell Script Linter"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
shellchecker:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Shell Linter
|
|
uses: azohra/shell-linter@v0.6.0
|
|
with:
|
|
path: "src/**/*.sh"
|
|
severity: "error" # [style, info, warning, error]
|
|
env:
|
|
SHELLCHECK_OPTS: -e SC2072 # Acceptable use of decimal comparison |