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
149 lines
2.8 KiB
YAML
149 lines
2.8 KiB
YAML
pipeline:
|
|
e2e-tests:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npx playwright install --with-deps firefox
|
|
- npx playwright install --with-deps webkit
|
|
- npm run test:ci
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
branch:
|
|
- main
|
|
- develop
|
|
|
|
e2e-tests-smoke:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npm run test:smoke
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
e2e-tests-regression:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npm run test:tier:standard
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-performance:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npm run test:performance
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-responsive:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npm run test:responsive
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-visual:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npx playwright test --grep @visual
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-a11y:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npx playwright test --grep @accessibility
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-report:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium
|
|
- npm run test:report
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
|
|
e2e-tests-all-browsers:
|
|
image: node:18-alpine
|
|
environment:
|
|
NODE_ENV: test
|
|
CI: true
|
|
commands:
|
|
- cd e2e
|
|
- npm ci
|
|
- npx playwright install --with-deps chromium firefox webkit
|
|
- npm run test:all-browsers
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|
|
- develop
|