Skip to content

Commit

Permalink
ci(all): fixes ci file to start docker early
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed May 19, 2020
1 parent 2e44261 commit 03dcc0b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start Docker Compose
run: docker-compose up -d
- name: install
run: yarn setup
- name: lint
run: yarn lint
- name: test
run: yarn test:cov
- name: Start Docker Compose
run: docker-compose up -d
- name: integration test
run: yarn test:int
- name: Stop Docker Compose
Expand Down
20 changes: 15 additions & 5 deletions integration/test/rpc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { INestApplication, INestMicroservice } from '@nestjs/common';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';
import {
MicroserviceOptions,
MqttOptions,
NatsOptions,
RmqOptions,
TcpOptions,
Transport,
} from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import { color } from '@ogma/logger';
import {
Expand All @@ -21,15 +28,18 @@ import {
serviceOptionsFactory,
} from './utils';

const tcpOptions = {};
const mqttOptions = { url: 'mqtt://localhost:1883' };
const natsOptions = { url: 'nats://localhost:4222' };
const rabbitOptions = {
const tcpOptions: TcpOptions['options'] = {};
const mqttOptions: MqttOptions['options'] = { url: 'mqtt://localhost:1883' };
const natsOptions: NatsOptions['options'] = { url: 'nats://localhost:4222' };
const rabbitOptions: RmqOptions['options'] = {
urls: ['amqp://localhost:5672'],
queue: 'cats_queue',
queueOptions: {
durable: false,
},
socketOptions: {
durable: true,
},
};

describe.each`
Expand Down

0 comments on commit 03dcc0b

Please sign in to comment.