Skip to content

build(deps): bump cross-spawn from 7.0.3 to 7.0.5 #7603

build(deps): bump cross-spawn from 7.0.3 to 7.0.5

build(deps): bump cross-spawn from 7.0.3 to 7.0.5 #7603

Workflow file for this run

name: E2E test
on: [push]
jobs:
e2e-test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: nestjs
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
integresql:
image: allaboutapps/integresql
env:
INTEGRESQL_PGUSER: user
INTEGRESQL_PGPASSWORD: password
INTEGRESQL_PGDATABASE: nestjs
INTEGRESQL_PGHOST: postgres
ports:
- 5000:5000
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: bahmutov/npm-install@v1
- name: Run E2E tests
run: |
cp .env.example .env
npm run build
npm run db:create
npm run typeorm migration:run
npm run db:seed
npm run test:e2e
env:
CI: 'true'
PORT: 3000
APP_SECRET: dolore-lorem-duis-quis-cupidatat-ut-esse-commodo-nostrud
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: nestjs
DATABASE_URL: postgres://user:password@localhost:${{ job.services.postgres.ports['5432'] }}/nestjs
ALLOWED_ORIGINS: '*'
INTEGRESQL_URL: http://localhost:${{ job.services.integresql.ports['5000'] }}
run-server:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: admin
POSTGRES_PASSWORD: wnbaohW7mn
POSTGRES_DB: authentication
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: bahmutov/npm-install@v1
- name: Prepare the database
run: |
npm run build
npm run db:create
npm run typeorm migration:run
npm run db:seed
env:
DATABASE_URL: postgres://admin:wnbaohW7mn@localhost:${{ job.services.postgres.ports['5432'] }}/authentication
- name: Run the backend
run: npm start &
env:
PORT: 3000
NODE_ENV: production
APP_SECRET: 444a45b38193572dd7d3c0d691d806b487dbdfe1
DATABASE_URL: postgres://admin:wnbaohW7mn@localhost:${{ job.services.postgres.ports['5432'] }}/authentication
ALLOWED_ORIGINS: '*'
- name: Run Postman collection
run: npx newman run https://www.getpostman.com/collections/6b82b259fc751deda654