targo-backend/.github/workflows/e2e.yml
2025-08-13 10:04:16 -04:00

34 lines
821 B
YAML

name: e2e
on:
push:
branches: [main]
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dev # ou test
ports: ["5432:5432"]
options: >-
--health-cmd="pg_isready -U postgres -d dev"
--health-interval=5s
--health-timeout=5s
--health-retries=20
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/dev?schema=public
TZ: UTC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '18' }
- run: npm ci
- run: npx prisma migrate deploy
- run: npm run seed:all
- run: npm run test:e2e:ci