feat: add Playwright testing framework configuration and tests #71

Merged
jank merged 48 commits from feature/add-playwright into main 2025-01-17 13:34:52 +00:00
Showing only changes of commit 2d062da74f - Show all commits

View file

@ -10,6 +10,29 @@ jobs:
test: test:
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest 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: steps:
# Checkout the repository # Checkout the repository
@ -34,9 +57,6 @@ jobs:
env: env:
PORT: 4200 # Ensure the server runs on a predictable port PORT: 4200 # Ensure the server runs on a predictable port
- name: Boot docker compose
run: docker compose up -d
# Install Playwright and dependencies # Install Playwright and dependencies
- name: Install Playwright Browsers - name: Install Playwright Browsers
run: npx playwright install --with-deps run: npx playwright install --with-deps