ci(workflow): refactor and add shmft

This commit is contained in:
Stanislas Lange 2020-04-28 15:04:16 +02:00
parent efa9e5031a
commit 2e492d263a
2 changed files with 26 additions and 13 deletions

26
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,26 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Lint
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: shellcheck
uses: ludeeus/action-shellcheck@0.0.1
env:
SHELLCHECK_OPTS: -e SC1091,SC1117,SC2001
shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: shfmt
uses: bltavares/actions/shfmt@master
env:
SHFMT_ARGS: -d

View File

@ -1,13 +0,0 @@
on: push
name: ShellCheck
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: shellcheck
uses: ludeeus/action-shellcheck@0.0.1
env:
SHELLCHECK_OPTS: -e SC1091,SC1117,SC2001
with:
args: wireguard-install.sh