mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
refactor: add Redis service to CircleCI for E2E tests
- Added Redis container to samples job in CircleCI config - Removed all mocking from E2E tests to use real Bull queue - Updated app.module.ts to support environment-based Redis config - Fixed test routes to match controller (POST /audio/transcode) - Updated jest-e2e.json with proper timeout and exit settings - Tests now perform true integration testing with real Redis
This commit is contained in:
@@ -169,8 +169,12 @@ jobs:
|
||||
working_directory: ~/nest
|
||||
docker:
|
||||
- image: cimg/node:<< pipeline.parameters.maintenance-node-version >>
|
||||
- image: redis:7-alpine
|
||||
name: redis
|
||||
environment:
|
||||
DISABLE_OPENCOLLECTIVE: 'true'
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
steps:
|
||||
- checkout
|
||||
- *restore-cache
|
||||
@@ -179,6 +183,7 @@ jobs:
|
||||
name: Build all samples
|
||||
command: npm run build:samples
|
||||
|
||||
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
@@ -204,3 +209,4 @@ workflows:
|
||||
- samples:
|
||||
requires:
|
||||
- build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user