Skip to content

chore(deps-dev): bump jake from 10.9.1 to 10.9.2 #10

chore(deps-dev): bump jake from 10.9.1 to 10.9.2

chore(deps-dev): bump jake from 10.9.1 to 10.9.2 #10

name: CI - Integration and E2E Tests
on: [pull_request]
jobs:
run-unit-tests:
name: Run Integration and E2E Tests
runs-on: ubuntu-latest
services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNEME: postgres
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: projectdb
steps:
- uses: actions/checkout@v4 # Check out the repository
- uses: actions/setup-node@v4 # Set up Node.js environment
with:
node-version: 18
cache: 'npm'
- run: npm ci # Install dependencies
- run: npx prisma generate --schema ./src/shared/infrastructure/database/prisma/schema.prisma
env:
DATABASE_URL: 'postgresql://postgres:docker@localhost:5432/projectdb?schema=public'
- run: npm run test:int
env:
APP_PORT: 3000
NODE_ENV: test
JWT_SECRET: fake_secret
JWT_EXPIRES_IN: 86400
DATABASE_URL: 'postgresql://postgres:docker@localhost:5432/projectdb?schema=public'
- run: npm run test:e2e
env:
APP_PORT: 3000
NODE_ENV: test
JWT_SECRET: fake_secret
JWT_EXPIRES_IN: 86400
DATABASE_URL: 'postgresql://postgres:docker@localhost:5432/projectdb?schema=public'