wireguard-install/.github/workflows/lint.yml

29 lines
487 B
YAML
Raw Normal View History

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-18 22:31:03 +03:00
uses: ludeeus/action-shellcheck@0.4.1
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