53 Set env vars for tests and build in github actions

This commit is contained in:
Hendrik Belitz
2025-07-25 12:25:00 +02:00
parent 92d19efc41
commit c5eeedb31d
2 changed files with 32 additions and 0 deletions
+16
View File
@@ -29,11 +29,27 @@ jobs:
- name: Run unit tests
run: npm run test:unit -- --run
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
SMTP_HOST: "smtp.example.com"
SMTP_PORT: "587"
SMTP_SECURE: "false"
SMTP_USER: "your-email@example.com"
SMTP_PASS: "your-password"
SMTP_FROM_NAME: "Open Reception"
SMTP_FROM_EMAIL: "noreply@example.com"
- name: Build application
run: npm run build
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
SMTP_HOST: "smtp.example.com"
SMTP_PORT: "587"
SMTP_SECURE: "false"
SMTP_USER: "your-email@example.com"
SMTP_PASS: "your-password"
SMTP_FROM_NAME: "Open Reception"
SMTP_FROM_EMAIL: "noreply@example.com"
- name: Install Playwright browsers
run: npx playwright install --with-deps
+16
View File
@@ -30,8 +30,24 @@ jobs:
- name: Run unit tests
run: npm run test:unit -- --run
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
SMTP_HOST: "smtp.example.com"
SMTP_PORT: "587"
SMTP_SECURE: "false"
SMTP_USER: "your-email@example.com"
SMTP_PASS: "your-password"
SMTP_FROM_NAME: "Open Reception"
SMTP_FROM_EMAIL: "noreply@example.com"
- name: Build application
run: npm run build
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
SMTP_HOST: "smtp.example.com"
SMTP_PORT: "587"
SMTP_SECURE: "false"
SMTP_USER: "your-email@example.com"
SMTP_PASS: "your-password"
SMTP_FROM_NAME: "Open Reception"
SMTP_FROM_EMAIL: "noreply@example.com"