File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change @@ -200,6 +200,13 @@ $(BIN)/woke: ; $(info $(M) getting woke $(WOKE_VERSION))
200200woke : | $(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
You can’t perform that action at this time.
0 commit comments