Skip to content

Commit eb19a4f

Browse files
committed
Add a step to CI to check files have been formatted with shfmt
1 parent 8c77ec4 commit eb19a4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.buildkite/pipeline.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ steps:
77
agents:
88
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
99

10+
- label: ":bash: shfmt"
11+
key: fmt
12+
command: shfmt --binary-next-line --indent 2 --list .
13+
agents:
14+
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
15+
1016
- id: "fixperms-tests"
1117
name: ":go: fixperms tests"
1218
agents:
@@ -36,6 +42,7 @@ steps:
3642
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
3743
command: .buildkite/steps/deploy-service-role-stack.sh
3844
depends_on:
45+
- "fmt"
3946
- "lint"
4047
- "fixperms-tests"
4148
- "fixperms-build"
@@ -48,6 +55,7 @@ steps:
4855
agents:
4956
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
5057
depends_on:
58+
- "fmt"
5159
- "lint"
5260
- "fixperms-tests"
5361
- "fixperms-build"
@@ -92,6 +100,7 @@ steps:
92100
agents:
93101
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
94102
depends_on:
103+
- "fmt"
95104
- "lint"
96105
- "fixperms-tests"
97106
- "fixperms-build"
@@ -135,6 +144,7 @@ steps:
135144
agents:
136145
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
137146
depends_on:
147+
- "fmt"
138148
- "lint"
139149
- "fixperms-tests"
140150
- "fixperms-build"

0 commit comments

Comments
 (0)