chore(deps): bump the npm_and_yarn group with 2 updates #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |