Skip to content

Commit

Permalink
chore: add .env.e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Oct 30, 2024
1 parent 6f734f8 commit a3293a9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .env.e2e
Original file line number Diff line number Diff line change
@@ -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 protected]
EMAIL_SECURE=false

# Dev
DEVELOPER=true
8 changes: 4 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a3293a9

Please sign in to comment.