From 2e492d263ae35b6874831ea1bbc6025f150d9f9f Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 28 Apr 2020 15:04:16 +0200 Subject: ci(workflow): refactor and add shmft --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yml (limited to '.github/workflows/lint.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 -- cgit v1.2.3