2020-04-28 16:04:16 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
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:
|
2020-07-18 22:31:03 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-04-28 16:04:16 +03:00
|
|
|
- name: shellcheck
|
2020-07-29 09:23:41 +03:00
|
|
|
uses: ludeeus/action-shellcheck@0.5.0
|
2020-04-28 16:04:16 +03:00
|
|
|
env:
|
|
|
|
SHELLCHECK_OPTS: -e SC1091,SC1117,SC2001
|
2020-07-18 22:31:03 +03:00
|
|
|
|
2020-04-28 16:04:16 +03:00
|
|
|
shfmt:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-07-18 22:31:03 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-04-28 16:04:16 +03:00
|
|
|
- name: shfmt
|
|
|
|
uses: bltavares/actions/shfmt@master
|
|
|
|
env:
|
|
|
|
SHFMT_ARGS: -d
|