github actions: run nats server for tests

This commit is contained in:
Cristian Chiru
2024-01-29 23:29:28 +02:00
parent c80fa8f0c7
commit 715c4816f5
2 changed files with 5 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ jobs:
run: |
redis-server --port 6379 &
- name: Install NATS
- name: Run NATS
run: |
docker run -d --name nats-jetstream -p 4222:4222 nats:latest -- --jetstream
sleep 2

View File

@@ -23,5 +23,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'
- name: Run NATS
run: |
docker run -d --name nats-jetstream -p 4222:4222 nats:latest -- --jetstream
sleep 2
- name: Test Nats
run: cd ./nats && go test ./... -v -race