ci(lint): add shfmt job (#639)

This commit is contained in:
Stanislas 2020-04-27 15:01:15 +02:00 committed by GitHub
parent 6cc0022dff
commit 0f871f26d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
on: [push, pull_request] on: [push, pull_request]
name: ShellCheck name: Lint
jobs: jobs:
shellcheck: shellcheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -9,3 +9,11 @@ jobs:
uses: ludeeus/action-shellcheck@0.0.1 uses: ludeeus/action-shellcheck@0.0.1
with: with:
args: openvpn-install.sh -e SC1091,SC2164,SC2034,SC1072,SC1073,SC1009 args: openvpn-install.sh -e SC1091,SC2164,SC2034,SC1072,SC1073,SC1009
shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: shfmt
uses: bltavares/actions/shfmt@master
env:
SHFMT_ARGS: -d