summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2022-01-09 01:18:22 +0530
committerAyush Agarwal <ayush@fastmail.in>2022-01-09 01:21:36 +0530
commit51ac2d60dbc50e1f1fda45600e9231d924fcc51e (patch)
treed5c359b90de5b27c61e19f65eb2c7a5291353983 /.github
parentc8cf96bddc05408b87de71f9efd8bbced8d63dff (diff)
add shellcheck and shfmt github ci check
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 24 insertions, 0 deletions
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