add unified test gate
This commit is contained in:
parent
102e5db507
commit
4241f5ba29
2 changed files with 54 additions and 2 deletions
48
justfile
48
justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue