commit 51ac2d60dbc50e1f1fda45600e9231d924fcc51e parent c8cf96bddc05408b87de71f9efd8bbced8d63dff Author: Ayush Agarwal <ayush@fastmail.in> Date: Sun, 9 Jan 2022 01:18:22 +0530 add shellcheck and shfmt github ci check Diffstat:
| A | .github/workflows/ci.yml | | | 24 | ++++++++++++++++++++++++ |
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +--- +name: run shellcheck and shfmt +on: [push, pull_request] +jobs: + lint: + name: use shellcheck to lint tessen + runs-on: ubuntu-latest + container: + image: koalaman/shellcheck-alpine:stable + steps: + - name: checkout tessen for shellcheck + uses: actions/checkout@v2 + - name: run shellcheck + run: shellcheck tessen + format: + name: use shfmt to check tessen code format + runs-on: ubuntu-latest + container: + image: mvdan/shfmt:v3.4.2-alpine + steps: + - name: checkout tessen for shfmt + uses: actions/checkout@v2 + - name: run shfmt + run: shfmt -d -i 2 -bn -ci -sr tessen