diff --git a/.env.e2e b/.env.e2e new file mode 100644 index 0000000..ddae3c4 --- /dev/null +++ b/.env.e2e @@ -0,0 +1,24 @@ +# Clone this file into a .env file and populate it with your secrets to start developing with docker + +# Prisma +# https://www.prisma.io/docs/reference/database-reference/connection-urls#env +DATABASE_URL="postgresql://postgres:password@localhost:5432/peoplez" + +# Next Auth +NEXTAUTH_URL="http://localhost:3000" +NEXTAUTH_SECRET="secret" + +# Stripe keys +STRIPE_PUBLISHABLE_KEY= +STRIPE_PRIVATE_KEY= + +# Email sending +EMAIL_SERVER_USER= +EMAIL_SERVER_PASSWORD= +EMAIL_SERVER_HOST=maildev +EMAIL_SERVER_PORT=1025 +EMAIL_FROM=peoplez@localhost.com +EMAIL_SECURE=false + +# Dev +DEVELOPER=true diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index ba79b36..9c62978 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,9 +10,9 @@ jobs: postgres: image: postgres:latest env: - POSTGRES_USER: test - POSTGRES_PASSWORD: test - POSTGRES_DB: db + POSTGRES_USER: postgres + POSTGRES_PASSWORD: password + POSTGRES_DB: peoplez POSTGRESQL_FSYNC: "off" ports: - 5432:5432 @@ -28,7 +28,7 @@ jobs: - name: Install npm run: npm ci - name: Copy env - run: cp .env.docker .env + run: cp .env.e2e .env - name: Install Playwright Browsers run: npx playwright install --with-deps - name: Run Playwright tests