-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (43 loc) · 1.15 KB
/
Makefile
File metadata and controls
58 lines (43 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: build compile test test-harness test-integration clean fmt check install lint lint-fix typecheck verify
# Build the native extension and compile
build: compile
compile:
bundle exec rake compile
# Run unit tests
test: compile
bundle exec rake spec
# Run test harness specs (requires Docker)
test-harness: compile
bundle exec rspec spec/harness_spec.rb
# Run sdk-test-suite integration tests (requires Docker + Java 21+)
test-integration: compile
./etc/run-integration-tests.sh
# Linting
lint:
bundle exec rubocop
lint-fix:
bundle exec rubocop -A
# Type check — Steep (public API, shipped RBS) + Sorbet (internal, dev-only)
typecheck:
bundle exec steep check
bundle exec srb tc
# Check Rust code compiles
check:
cargo check
# Format Rust code
fmt:
cargo fmt
# Clean build artifacts
clean:
cargo clean
rm -rf tmp/ pkg/ lib/restate/restate_internal.*
# Install gem dependencies
install:
bundle install
# Build the gem
gem: compile
gem build restate-sdk.gemspec
# Build, lint, and run unit tests (no integration tests)
verify: compile lint typecheck test-harness
# Run everything (install, compile, test, lint)
all: install compile test lint