add unified test gate
This commit is contained in:
parent
102e5db507
commit
4241f5ba29
2 changed files with 54 additions and 2 deletions
|
|
@ -10,10 +10,14 @@
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"type-check": "vue-tsc --build",
|
"type-check": "vue-tsc --build",
|
||||||
"test:e2e": "cypress run",
|
"test:e2e": "cypress run",
|
||||||
"lint": "run-s \"lint:*\"",
|
"lint": "run-s lint:oxlint lint:eslint",
|
||||||
"lint:oxlint": "oxlint . --fix",
|
"lint:oxlint": "oxlint . --fix",
|
||||||
"lint:eslint": "eslint . --fix --cache",
|
"lint:eslint": "eslint . --fix --cache",
|
||||||
"format": "oxfmt src/"
|
"lint:check": "run-s lint:oxlint:check lint:eslint:check",
|
||||||
|
"lint:oxlint:check": "oxlint .",
|
||||||
|
"lint:eslint:check": "eslint . --cache",
|
||||||
|
"format": "oxfmt src/",
|
||||||
|
"format:check": "oxfmt --check src/"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pinia": "^4.0.2",
|
"pinia": "^4.0.2",
|
||||||
|
|
|
||||||
48
justfile
48
justfile
|
|
@ -3,5 +3,53 @@ set shell := ["bash", "-c"]
|
||||||
default:
|
default:
|
||||||
@just --list
|
@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:
|
fresh:
|
||||||
cd backend && php artisan migrate:fresh --seed
|
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