fix nats unit test connection + fix lint CI job
This commit is contained in:
parent
8957ad6543
commit
7fb3f19df7
3 changed files with 11 additions and 6 deletions
|
@ -1,9 +1,8 @@
|
||||||
pipeline:
|
steps:
|
||||||
lint:
|
lint:
|
||||||
image: denoland/deno:${DENO_VERSION}
|
image: denoland/deno:${DENO_VERSION}
|
||||||
commands:
|
commands:
|
||||||
- deno ta
|
- deno lint
|
||||||
- cargo clippy
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
DENO_VERSION:
|
DENO_VERSION:
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
pipeline:
|
steps:
|
||||||
test:
|
test:
|
||||||
image: denoland/deno:${DENO_VERSION}
|
image: denoland/deno:${DENO_VERSION}
|
||||||
|
environment:
|
||||||
|
- NATS_HOST=nats:4222
|
||||||
commands:
|
commands:
|
||||||
- deno task test
|
- deno task test
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
DENO_VERSION:
|
DENO_VERSION:
|
||||||
- 1.39.1
|
- 1.39.1
|
||||||
|
|
||||||
|
services:
|
||||||
|
nats:
|
||||||
|
image: nats
|
|
@ -7,7 +7,7 @@ import { afterEach, beforeEach, it } from "std/testing/bdd.ts";
|
||||||
|
|
||||||
let srv!: Service;
|
let srv!: Service;
|
||||||
|
|
||||||
const natsServer = "127.0.0.1:4222";
|
const natsServer = Deno.env.get("NATS_HOST") || "127.0.0.1:4222";
|
||||||
const serviceName = "test-service";
|
const serviceName = "test-service";
|
||||||
const adaptorName = "nats";
|
const adaptorName = "nats";
|
||||||
const subject = "test";
|
const subject = "test";
|
||||||
|
|
Loading…
Reference in a new issue