From 51ac2d60dbc50e1f1fda45600e9231d924fcc51e Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Sun, 9 Jan 2022 01:18:22 +0530 Subject: add shellcheck and shfmt github ci check --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1e89a01 --- /dev/null +++ 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 -- cgit v1.2.3