Skip to content

Commit aec425b

Browse files
authored
fix(build): workflow syntax (#2)
1 parent 18c28ac commit aec425b

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/CI&CD.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,6 @@ jobs:
2727
image: 'nats:2.1.4'
2828
ports:
2929
- 4222:4222
30-
stan:
31-
image: 'nats-streaming:0.17.0'
32-
command:
33-
- '--cluster_id=ci'
34-
- '--max_channels=0'
35-
- '--max_subs=0'
36-
- '--max_msgs=0'
37-
- '--max_bytes=0'
38-
- '--max_age=0s'
39-
- '--max_inactivity=0s'
40-
- '--nats_server=nats://localhost:4222'
41-
- '--hb_interval=1s'
42-
- '--hb_timeout=1s'
43-
- '--hb_fail_count=3'
44-
- '--store=FILE'
45-
- '--dir=/tmp'
46-
- '--file_fds_limit=4000'
4730
env:
4831
DOCKERIZE_VER: '0.12.0'
4932
HADOLINT_VER: '1.18.0'
@@ -59,6 +42,24 @@ jobs:
5942
MONO__EXAMPLE_MYSQL_AUTH_PASS: ''
6043
NARADA4D_TEST_MYSQL: 'goose-mysql://[email protected]'
6144
steps:
45+
- name: Run STAN service
46+
run: |
47+
docker run -d --net=host nats-streaming:0.17.0 \
48+
--cluster_id=ci \
49+
--max_channels=0 \
50+
--max_subs=0 \
51+
--max_msgs=0 \
52+
--max_bytes=0 \
53+
--max_age=0s \
54+
--max_inactivity=0s \
55+
--nats_server=nats://localhost:4222 \
56+
--hb_interval=1s \
57+
--hb_timeout=1s \
58+
--hb_fail_count=3 \
59+
--store=FILE \
60+
--dir=/tmp \
61+
--file_fds_limit=4000
62+
6263
- uses: actions/setup-go@v2
6364
with:
6465
go-version: ${{ env.GO_VERSION }}

0 commit comments

Comments
 (0)