.PHONY: check-dependencies check-fixture-lib check-kind-sample check-durable check-coordination check-identity check-credentials check-fast check-full check-fast-host check-full-host rust-check web-install web-check web-test-fast web-test-full CONTAINER_ENGINE ?= nerdctl 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 check-fast: check-fixture-lib $(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 check-full: check-fixture-lib $(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 check-dependencies: ./tests/kind/run.sh check-fixture-lib: ./tests/kind/lib-test.sh check-kind-sample: ./tests/kind/run-sample-job.sh check-durable: ./tests/kind/run-durable-job.sh check-coordination: ./tests/kind/run-coordination-job.sh check-identity: ./tests/kind/run-identity-job.sh check-credentials: ./tests/kind/run-credentials-job.sh