add unified test gate

This commit is contained in:
Yisroel Baum 2026-08-03 19:55:57 +03:00
parent 102e5db507
commit 4241f5ba29
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 54 additions and 2 deletions

View file

@ -3,5 +3,53 @@ set shell := ["bash", "-c"]
default:
@just --list
# Full completion gate. Start the worktree stack before running it because
# Cypress exercises the frontend and its backend wiring.
test-all:
@echo "==> frontend format + lint checks"
just frontend-format-check
just frontend-lint-check
@echo "==> frontend type check"
just frontend-type-check
@echo "==> backend static analysis"
just backend-types-check
@echo "==> frontend production build"
just frontend-build
@echo "==> backend tests"
just backend-test
@echo "==> frontend Cypress tests"
just frontend-cypress-run
# Backend
backend-test *args:
cd backend && php artisan test {{args}}
backend-types-check:
cd backend && composer types:check
fresh:
cd backend && php artisan migrate:fresh --seed
# Frontend
frontend-format:
cd frontend/website && npm run format
frontend-format-check:
cd frontend/website && npm run format:check
frontend-lint:
cd frontend/website && npm run lint
frontend-lint-check:
cd frontend/website && npm run lint:check
frontend-type-check:
cd frontend/website && npm run type-check
frontend-build:
cd frontend/website && npm run build-only
frontend-cypress-run:
cd frontend/website && npm run test:e2e