2026-07-17 03:27:08 +09:00
|
|
|
.PHONY: check-dependencies check-fixture-lib check-kind-sample check-durable check-coordination check-identity check-credentials check-stream check-target check-result check-fast check-full check-fast-host check-full-host rust-check web-install web-check web-test-fast web-test-full
|
2026-07-15 19:51:53 +09:00
|
|
|
|
2026-07-16 00:22:31 +09:00
|
|
|
CONTAINER_ENGINE ?= nerdctl
|
2026-07-15 19:51:53 +09:00
|
|
|
CONTAINER_RUN_FLAGS ?= --memory=16g --memory-swap=24g --cpus=4
|
|
|
|
|
PLAYWRIGHT_BROWSERS_PATH := $(CURDIR)/web/.cache/ms-playwright
|
|
|
|
|
export PLAYWRIGHT_BROWSERS_PATH
|
|
|
|
|
|
|
|
|
|
rust-check:
|
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
|
cargo nextest run --workspace --all-features
|
|
|
|
|
cargo test --workspace --doc
|
|
|
|
|
|
|
|
|
|
web-install:
|
|
|
|
|
pnpm --dir web install --frozen-lockfile
|
|
|
|
|
|
|
|
|
|
web-check: web-install
|
|
|
|
|
pnpm --dir web check
|
|
|
|
|
pnpm --dir web lint
|
|
|
|
|
pnpm --dir web build
|
|
|
|
|
|
|
|
|
|
web-test-fast: web-install
|
|
|
|
|
pnpm --dir web exec playwright install chromium
|
|
|
|
|
pnpm --dir web test:unit
|
|
|
|
|
pnpm --dir web test:component
|
|
|
|
|
pnpm --dir web test:e2e
|
|
|
|
|
|
|
|
|
|
web-test-full: web-install
|
|
|
|
|
pnpm --dir web exec playwright install chromium firefox webkit
|
|
|
|
|
pnpm --dir web test:unit
|
|
|
|
|
pnpm --dir web test:component:full
|
|
|
|
|
pnpm --dir web test:e2e:full
|
|
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-fast: check-fixture-lib
|
2026-07-15 19:51:53 +09:00
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target rust-check --tag remora-rust-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-rust-check:local
|
|
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target web-fast --tag remora-web-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-web-check:local
|
|
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-full: check-fixture-lib
|
2026-07-15 19:51:53 +09:00
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target rust-check --tag remora-rust-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-rust-check:local
|
|
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target web-full --tag remora-web-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-web-check:local
|
|
|
|
|
|
|
|
|
|
check-fast-host: rust-check web-check web-test-fast
|
|
|
|
|
|
|
|
|
|
check-full-host: rust-check web-check web-test-full
|
2026-07-16 00:22:02 +09:00
|
|
|
|
|
|
|
|
check-dependencies:
|
|
|
|
|
./tests/kind/run.sh
|
2026-07-16 02:36:58 +09:00
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-fixture-lib:
|
|
|
|
|
./tests/kind/lib-test.sh
|
|
|
|
|
|
2026-07-16 02:36:58 +09:00
|
|
|
check-kind-sample:
|
|
|
|
|
./tests/kind/run-sample-job.sh
|
2026-07-16 03:56:44 +09:00
|
|
|
|
|
|
|
|
check-durable:
|
|
|
|
|
./tests/kind/run-durable-job.sh
|
2026-07-16 14:30:58 +09:00
|
|
|
|
|
|
|
|
check-coordination:
|
|
|
|
|
./tests/kind/run-coordination-job.sh
|
2026-07-16 18:27:42 +09:00
|
|
|
|
|
|
|
|
check-identity:
|
|
|
|
|
./tests/kind/run-identity-job.sh
|
2026-07-17 00:18:02 +09:00
|
|
|
|
|
|
|
|
check-credentials:
|
|
|
|
|
./tests/kind/run-credentials-job.sh
|
2026-07-17 01:20:15 +09:00
|
|
|
|
|
|
|
|
check-stream:
|
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
cargo clippy --package remora-stream --all-targets --all-features -- -D warnings
|
|
|
|
|
cargo nextest run --package remora-stream --all-features
|
|
|
|
|
cargo test --package remora-stream --doc
|
2026-07-17 02:54:27 +09:00
|
|
|
|
|
|
|
|
check-target:
|
|
|
|
|
./tests/kind/run-target-job.sh
|
2026-07-17 03:27:08 +09:00
|
|
|
|
|
|
|
|
check-result:
|
|
|
|
|
./tests/kind/run-result-job.sh
|