From 93f094248fdd8b6b53510022e553e85137339818 Mon Sep 17 00:00:00 2001 From: Amr Elghobary Date: Thu, 13 Apr 2023 01:48:30 +0200 Subject: [PATCH] Update GitHub Actions workflow to start nats-server --- .github/workflows/ci_staging.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci_staging.yaml b/.github/workflows/ci_staging.yaml index a94661f78..c7facee1f 100644 --- a/.github/workflows/ci_staging.yaml +++ b/.github/workflows/ci_staging.yaml @@ -64,6 +64,13 @@ jobs: echo WEEKLY_REPORT_ENABLE= >> .env - run: yarn nx affected --target format --base $BASE - run: yarn nx affected:lint --base $BASE + - name: Install NATS server + run: | + wget https://github.com/nats-io/nats-server/releases/download/v2.9.15/nats-server-v2.9.15-amd64.deb + sudo dpkg -i nats-server-v2.9.15-amd64.deb + - name: Start NATS server + run: | + nats-server --jetstream & echo $! > nats-server.pid - name: Test run: yarn nx affected:test --base $BASE - name: Add frontend env vars