diff options
author | Stanislas Lange <angristan@pm.me> | 2020-04-28 15:04:16 +0200 |
---|---|---|
committer | Stanislas Lange <angristan@pm.me> | 2020-04-28 15:13:14 +0200 |
commit | 2e492d263ae35b6874831ea1bbc6025f150d9f9f (patch) | |
tree | 759f8e2cb5897fd7493cbe938390f092d6061889 /.github | |
parent | efa9e5031a3acb77b9eda7a1965941769d4c382b (diff) |
ci(workflow): refactor and add shmft
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 26 | ||||
-rw-r--r-- | .github/workflows/push.yml | 13 |
2 files changed, 26 insertions, 13 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..43ee65c --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index 33edafa..0000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -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 |