Skip to content

build(deps): bump @nestjs/core from 10.4.3 to 10.4.4 #1278

build(deps): bump @nestjs/core from 10.4.3 to 10.4.4

build(deps): bump @nestjs/core from 10.4.3 to 10.4.4 #1278

Workflow file for this run

name: Stress test
on:
push:
branches:
- master
jobs:
run-server:
name: Run server and stress test with k6
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: tighten
POSTGRES_PASSWORD: rename
POSTGRES_DB: embassy
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/*'
- name: Install k6
run: |
curl https://github.com/grafana/k6/releases/download/v0.39.0/k6-v0.39.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- uses: bahmutov/npm-install@v1
- name: Setup the project
run: |
npm run db:create
npm run typeorm migration:run
npm run db:seed
npm run build
npm prune --production
env:
DATABASE_URL: postgres://tighten:rename@localhost:${{ job.services.postgres.ports['5432'] }}/embassy
- name: Run the server
run: npm start &
env:
PORT: 3000
NODE_ENV: production
APP_SECRET: laborum-cupidatat-officia-duis-dolor-nisi-esse
DATABASE_URL: postgres://tighten:rename@localhost:${{ job.services.postgres.ports['5432'] }}/embassy
ALLOWED_ORIGINS: '*'
- name: Run k6 local test
run: ./k6 run stress-test/main.js
- uses: actions/upload-artifact@v4
with:
name: stress-test-result
path: stress-test-result.*