Skip to content

Commit 084554f

Browse files
committed
Fix review comments
1 parent c284adb commit 084554f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: yamllint
5454
run: |
5555
apt-get update && apt-get install -y yamllint
56-
yamllint -c .yamllint $(find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print | tr '\n' ' ')
56+
make yamllint
5757
- name: check-license
5858
run: |
5959
go install github.com/google/[email protected]

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ $(BIN)/woke: ; $(info $(M) getting woke $(WOKE_VERSION))
200200
woke: | $(WOKE) ; $(info $(M) running woke...) @ ## Run woke
201201
$Q $(WOKE) -c https://github.com/canonical/Inclusive-naming/raw/main/config.yml
202202

203+
.PHONY: yamlint
204+
yamllint: $(BIN)/yamllint.log
205+
206+
YAMLLINT := $(shell find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print)
207+
$(BIN)/yamllint.log: $(YAMLLINT) | $(BIN) ; $(info $(M) running yamlint…)
208+
yamllint -c .yamllint $? 2>&1 | tee $(BIN)/yamllint.log
209+
203210
# Misc
204211

205212
.PHONY: clean

0 commit comments

Comments
 (0)