feat: add Playwright testing framework configuration and tests #71
1 changed files with 23 additions and 3 deletions
26
.github/workflows/playwright.yml
vendored
26
.github/workflows/playwright.yml
vendored
|
@ -10,6 +10,29 @@ jobs:
|
|||
test:
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres-employee:
|
||||
container_name: postgres_employee
|
||||
image: postgres:13.3
|
||||
environment:
|
||||
POSTGRES_DB: employee_db
|
||||
POSTGRES_USER: employee
|
||||
POSTGRES_PASSWORD: secret
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
employee:
|
||||
container_name: employee
|
||||
image: berndheidemann/employee-management-service:1.1.3
|
||||
# image: berndheidemann/employee-management-service_without_keycloak:1.1
|
||||
environment:
|
||||
spring.datasource.url: jdbc:postgresql://postgres-employee:5432/employee_db
|
||||
spring.datasource.username: employee
|
||||
spring.datasource.password: secret
|
||||
ports:
|
||||
- "8089:8089"
|
||||
depends_on:
|
||||
- postgres-employee
|
||||
|
||||
steps:
|
||||
# Checkout the repository
|
||||
|
@ -34,9 +57,6 @@ jobs:
|
|||
env:
|
||||
PORT: 4200 # Ensure the server runs on a predictable port
|
||||
|
||||
- name: Boot docker compose
|
||||
run: docker compose up -d
|
||||
|
||||
# Install Playwright and dependencies
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
|
|
Loading…
Add table
Reference in a new issue