From 2e492d263ae35b6874831ea1bbc6025f150d9f9f Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 28 Apr 2020 15:04:16 +0200 Subject: [PATCH] ci(workflow): refactor and add shmft --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ .github/workflows/push.yml | 13 ------------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/push.yml 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