build(deps-dev): bump eslint from 8.57.0 to 9.14.0 #7492
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: 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 |