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:
|
||||
image: denoland/deno:${DENO_VERSION}
|
||||
commands:
|
||||
- deno ta
|
||||
- cargo clippy
|
||||
- deno lint
|
||||
|
||||
matrix:
|
||||
DENO_VERSION:
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
pipeline:
|
||||
steps:
|
||||
test:
|
||||
image: denoland/deno:${DENO_VERSION}
|
||||
environment:
|
||||
- NATS_HOST=nats:4222
|
||||
commands:
|
||||
- deno task test
|
||||
|
||||
matrix:
|
||||
DENO_VERSION:
|
||||
- 1.39.1
|
||||
|
||||
services:
|
||||
nats:
|
||||
image: nats
|
|
@ -7,7 +7,7 @@ import { afterEach, beforeEach, it } from "std/testing/bdd.ts";
|
|||
|
||||
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 adaptorName = "nats";
|
||||
const subject = "test";
|
||||
|
|
Loading…
Reference in a new issue