2020-10-10 13:55:06 +00:00
|
|
|
on: [push, pull_request, pull_request_target]
|
2020-04-28 13:04:16 +00:00
|
|
|
|
|
|
|
name: Lint
|
2020-07-18 19:31:03 +00:00
|
|
|
|
2020-04-28 13:04:16 +00:00
|
|
|
jobs:
|
|
|
|
shellcheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 15:58:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-08-03 15:47:22 +00:00
|
|
|
- name: shellcheck
|
2021-04-01 12:12:24 +00:00
|
|
|
uses: ludeeus/action-shellcheck@1.1.0
|
2020-08-03 15:47:22 +00:00
|
|
|
env:
|
|
|
|
SHELLCHECK_OPTS: -e SC1091,SC1117,SC2001,SC2034
|
2020-07-18 19:31:03 +00:00
|
|
|
|
2020-04-28 13:04:16 +00:00
|
|
|
shfmt:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 15:58:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-08-03 15:47:22 +00:00
|
|
|
- name: shfmt
|
|
|
|
uses: bltavares/actions/shfmt@master
|
|
|
|
env:
|
|
|
|
SHFMT_ARGS: -d
|