Run :backend:check, frontend coverage, and :e2e:check as sibling tasks with org.gradle.parallel=true. Move E2E Docker compose into an e2e subproject so Playwright can start while unit tests run. Copy e2e/ in the E2E backend image so settings.gradle resolves inside Docker. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
744 B
Groovy
14 lines
744 B
Groovy
tasks.register('check', Exec) {
|
|
group = 'verification'
|
|
description = 'Playwright E2E stack in Docker (parallel with :backend and root frontend tasks)'
|
|
workingDir = rootProject.projectDir
|
|
environment 'POSTGRES_DB', 'bilhej'
|
|
environment 'POSTGRES_USER', 'bilhej'
|
|
environment 'POSTGRES_PASSWORD', 'test_pw_ci_123'
|
|
environment 'JWT_SECRET', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
|
environment 'STRIPE_SECRET_KEY', 'sk_test_fake'
|
|
environment 'STRIPE_WEBHOOK_SECRET', 'whsec_fake'
|
|
environment 'STRIPE_PRICE_ID', 'price_fake'
|
|
commandLine 'docker', 'compose', '-f', 'docker-compose.e2e.yml',
|
|
'up', '--build', '--abort-on-container-exit', '--exit-code-from', 'playwright'
|
|
}
|