diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 2687ccde..aac884a1 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -30,6 +30,16 @@ jobs: with: deno-version: ${{ matrix.deno-version }} + - name: Set NATS Server Version + run: echo "NATS_VERSION=v2.10.17" >> $GITHUB_ENV + + - name: Get nats-server + run: | + wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip + unzip tmp.zip + mv nats-server-$NATS_VERSION-linux-amd64 nats-server + rm nats-server/README.md LICENSE + - name: Lint Deno Module working-directory: core run: | diff --git a/.github/workflows/jetstream.yml b/.github/workflows/jetstream.yml index bd283b28..fdc2ff58 100644 --- a/.github/workflows/jetstream.yml +++ b/.github/workflows/jetstream.yml @@ -27,6 +27,16 @@ jobs: with: deno-version: ${{ matrix.deno-version }} + - name: Set NATS Server Version + run: echo "NATS_VERSION=v2.10.17" >> $GITHUB_ENV + + - name: Get nats-server + run: | + wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip + unzip tmp.zip + mv nats-server-$NATS_VERSION-linux-amd64 nats-server + rm nats-server/README.md LICENSE + - name: Lint Deno Module working-directory: jetstream run: | diff --git a/.github/workflows/kv.yml b/.github/workflows/kv.yml index 9ea431a0..181888e8 100644 --- a/.github/workflows/kv.yml +++ b/.github/workflows/kv.yml @@ -27,6 +27,16 @@ jobs: with: deno-version: ${{ matrix.deno-version }} + - name: Set NATS Server Version + run: echo "NATS_VERSION=v2.10.17" >> $GITHUB_ENV + + - name: Get nats-server + run: | + wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip + unzip tmp.zip + mv nats-server-$NATS_VERSION-linux-amd64 nats-server + rm nats-server/README.md LICENSE + - name: Lint Deno Module working-directory: kv run: | diff --git a/.github/workflows/obj.yml b/.github/workflows/obj.yml index e4b44a52..4414fc29 100644 --- a/.github/workflows/obj.yml +++ b/.github/workflows/obj.yml @@ -27,6 +27,16 @@ jobs: with: deno-version: ${{ matrix.deno-version }} + - name: Set NATS Server Version + run: echo "NATS_VERSION=v2.10.17" >> $GITHUB_ENV + + - name: Get nats-server + run: | + wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip + unzip tmp.zip + mv nats-server-$NATS_VERSION-linux-amd64 nats-server + rm nats-server/README.md LICENSE + - name: Lint Deno Module working-directory: obj run: | diff --git a/.github/workflows/services.yml b/.github/workflows/services.yml index ea8abc3e..a4df4e39 100644 --- a/.github/workflows/services.yml +++ b/.github/workflows/services.yml @@ -27,6 +27,16 @@ jobs: with: deno-version: ${{ matrix.deno-version }} + - name: Set NATS Server Version + run: echo "NATS_VERSION=v2.10.17" >> $GITHUB_ENV + + - name: Get nats-server + run: | + wget "https://github.com/nats-io/nats-server/releases/download/$NATS_VERSION/nats-server-$NATS_VERSION-linux-amd64.zip" -O tmp.zip + unzip tmp.zip + mv nats-server-$NATS_VERSION-linux-amd64 nats-server + rm nats-server/README.md LICENSE + - name: Lint Deno Module working-directory: services run: | diff --git a/core/tests/basics_test.ts b/core/tests/basics_test.ts index f5ed63f4..ff6465f7 100644 --- a/core/tests/basics_test.ts +++ b/core/tests/basics_test.ts @@ -957,17 +957,8 @@ Deno.test("basics - subscription cb with timeout cancels on message", async () = }); Deno.test("basics - resolve", async () => { - const token = Deno.env.get("NGS_CI_USER"); - if (!token) { - disabled( - `skipping: NGS_CI_USER is not available in the environment`, - ); - return; - } - const nci = await connect({ - servers: "connect.ngs.global", - authenticator: jwtAuthenticator(token), + servers: "demo.nats.io", }) as NatsConnectionImpl; await nci.flush(); @@ -1502,18 +1493,9 @@ Deno.test("basics - respond message", async () => { await cleanup(ns, nc); }); -Deno.test("basics - resolve", async () => { - const token = Deno.env.get("NGS_CI_USER"); - if (token === undefined) { - disabled( - `skipping: NGS_CI_USER is not available in the environment`, - ); - return; - } - +Deno.test("basics - resolve false", async () => { const nci = await connect({ - servers: "connect.ngs.global", - authenticator: jwtAuthenticator(token), + servers: "demo.nats.io", resolve: false, }) as NatsConnectionImpl;