From aec425b96bdf651e63ce3c755d16b613370cbea7 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Wed, 21 Oct 2020 19:07:46 +0200 Subject: [PATCH] fix(build): workflow syntax (#2) --- .github/workflows/CI&CD.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/CI&CD.yml b/.github/workflows/CI&CD.yml index 0d533a4..e7eb466 100644 --- a/.github/workflows/CI&CD.yml +++ b/.github/workflows/CI&CD.yml @@ -27,23 +27,6 @@ jobs: image: 'nats:2.1.4' ports: - 4222:4222 - stan: - image: 'nats-streaming:0.17.0' - command: - - '--cluster_id=ci' - - '--max_channels=0' - - '--max_subs=0' - - '--max_msgs=0' - - '--max_bytes=0' - - '--max_age=0s' - - '--max_inactivity=0s' - - '--nats_server=nats://localhost:4222' - - '--hb_interval=1s' - - '--hb_timeout=1s' - - '--hb_fail_count=3' - - '--store=FILE' - - '--dir=/tmp' - - '--file_fds_limit=4000' env: DOCKERIZE_VER: '0.12.0' HADOLINT_VER: '1.18.0' @@ -59,6 +42,24 @@ jobs: MONO__EXAMPLE_MYSQL_AUTH_PASS: '' NARADA4D_TEST_MYSQL: 'goose-mysql://root@127.0.0.1' steps: + - name: Run STAN service + run: | + docker run -d --net=host nats-streaming:0.17.0 \ + --cluster_id=ci \ + --max_channels=0 \ + --max_subs=0 \ + --max_msgs=0 \ + --max_bytes=0 \ + --max_age=0s \ + --max_inactivity=0s \ + --nats_server=nats://localhost:4222 \ + --hb_interval=1s \ + --hb_timeout=1s \ + --hb_fail_count=3 \ + --store=FILE \ + --dir=/tmp \ + --file_fds_limit=4000 + - uses: actions/setup-go@v2 with: go-version: ${{ env.GO_VERSION }}