Skip to content

Commit dfec769

Browse files
committed
Added a top-level Makefile in java-sdk to simplify running tests and linters
1 parent a46765a commit dfec769

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.PHONY: help test test-integration lint fmt
2+
3+
# Default target when 'make' is run without arguments
4+
help:
5+
@echo "Available targets:"
6+
@echo " test - Run unit tests"
7+
@echo " test-integration - Run integration tests"
8+
@echo " lint - Run static analysis and checkstyle"
9+
@echo " fmt - Auto-format code using Spotless"
10+
11+
# Run unit tests
12+
test:
13+
./gradlew test
14+
15+
# Run integration tests
16+
test-integration:
17+
./gradlew test-integration
18+
19+
# Run static analysis and checkstyle
20+
lint:
21+
./gradlew check
22+
23+
# Auto-format code using Spotless
24+
fmt:
25+
./gradlew spotlessApply

0 commit comments

Comments
 (0)