Skip to content

Commit

Permalink
setup specific make commands for clean-gen and go-mod-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Nov 28, 2024
1 parent f83a33f commit f8d1842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
check-latest: true
cache-dependency-path: "**/go.sum"
- name: Generate
run: make clean protobuf go-mod-tidy
run: make clean protobuf tidy
- name: Run tests
run: make test
test-compatibility:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ clean-gen:
clean: clean-gen
rm -rf $(OTLP_OUTPUT_DIR)/*/ $(OTLPSLIM_OUTPUT_DIR)/*/

.PHONY: clean-gen go-mod-tidy
tidy: go-mod-tidy

.PHONY: go-mod-tidy
go-mod-tidy: clean-gen $(ALL_GO_MOD_DIRS:%=go-mod-tidy/%)
go-mod-tidy/%: DIR=$*
Expand Down

0 comments on commit f8d1842

Please sign in to comment.