mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-22 08:54:52 +02:00
53 Set env vars for tests and build in github actions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user