summaryrefslogtreecommitdiff
path: root/.github/workflows/format.yaml
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-07-19 18:22:49 +0200
committerGitHub <[email protected]>2021-07-19 20:52:49 +0430
commit0b7668d037b03cfe0ebe84c8a0d87e29c7617af3 (patch)
treec302f69190c2f0d89bb2099ab0635546470a7fb3 /.github/workflows/format.yaml
parenta3ab8b0df87947396d134b5d73857dfb03a587ee (diff)
[Feature] Add shell workflows (#1030)
Diffstat (limited to '.github/workflows/format.yaml')
-rw-r--r--.github/workflows/format.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
index 1b9b6649..a91862fa 100644
--- a/.github/workflows/format.yaml
+++ b/.github/workflows/format.yaml
@@ -22,4 +22,22 @@ jobs:
- name: Check formatting
run: |
./utils/stylua --config-path ./utils/.stylua.toml -c .
+ shfmt-check:
+ name: "Formatting check with shfmt"
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: '1.16'
+
+ - name: Use shfmt
+ run: |
+ GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
+
+ - name: Check formatting
+ run: |
+ shfmt -l -d .
+