Add Linter to GitHub Actions

This commit is contained in:
Zhong Lufan 2023-01-30 23:27:19 +08:00
parent 8366aadeea
commit 92c24f3528
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 23 additions and 0 deletions

23
.github/workflows/linter.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Linter
on:
push:
paths:
- '.github/workflows/linter.yml'
- '**.sh'
pull_request:
paths:
- '.github/workflows/linter.yml'
- '**.sh'
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x
with:
ignore_paths: ./test/bats/** ./test/test_helper/**