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