Skip to content

Commit b69eb86

Browse files
chore: Added a top-level Makefile in java-sdk to simplify running tests and linters (#242)
* Added a top-level Makefile in java-sdk to simplify running tests and linters * added clean and all --------- Co-authored-by: Anurag Bandyopadhyay <angbpy@gmail.com>
1 parent aa07907 commit b69eb86

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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
26+
27+
28+
# Clean build artifacts
29+
clean:
30+
./gradlew clean
31+
32+
# Run all tests
33+
all: test lint
34+
@echo "All checks completed"

0 commit comments

Comments
 (0)