Skip to content

Commit dfab100

Browse files
committed
Include whitespace check in 'make' and 'make ws'
Also use 'make ws' in github action. Follow up to #2603
1 parent 6fe8acb commit dfab100

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
# Exit with status code 1 if there are differences (i.e. unformatted files)
115115
git diff --exit-code
116116
- name: Run whitespace check
117-
run: python tools/validate_whitespace.py
117+
run: make ws
118118

119119
validate-bundle-schema:
120120
needs: cleanups

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default: vendor fmt lint tidy
1+
default: vendor fmt lint tidy ws
22

33
PACKAGES=./acceptance/... ./libs/... ./internal/... ./cmd/... ./bundle/... .
44

@@ -20,6 +20,9 @@ fmt:
2020
ruff format -qn
2121
golangci-lint fmt
2222

23+
ws:
24+
./tools/validate_whitespace.py
25+
2326
test:
2427
${GOTESTSUM_CMD} -- ${PACKAGES}
2528

0 commit comments

Comments
 (0)