498bb3a3c8
- Move CI/CD configs to config/ci/ directory - Reorganize scripts into categorized directories (deployment, monitoring, testing, utils) - Consolidate documentation into docs/ directory with proper structure - Update linting and testing configurations - Remove obsolete test reports and performance summaries - Add new documentation for code quality tools and contact form security - Improve project organization and maintainability - Fix lint-staged config to only lint JS/TS files - Disable react/react-in-jsx-scope rule for Next.js compatibility - Ignore scripts and test config directories in ESLint
29 lines
548 B
YAML
29 lines
548 B
YAML
when:
|
|
branch: [main, develop]
|
|
event: [push, pull_request]
|
|
|
|
steps:
|
|
lint:
|
|
image: node:18-alpine
|
|
commands:
|
|
- npm ci
|
|
- npm run lint
|
|
- npm run type-check
|
|
|
|
test:
|
|
image: node:18-alpine
|
|
commands:
|
|
- npm ci
|
|
- npm run db:push
|
|
- npm run test:unit -- --coverage --coverageReporters=text --coverageReporters=lcov
|
|
- npx playwright install --with-deps
|
|
- npm run test:e2e
|
|
|
|
build:
|
|
image: node:18-alpine
|
|
commands:
|
|
- npm ci
|
|
- npm run build
|
|
when:
|
|
status: [success]
|