forked from gofiber/storage
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.02 KB
/
test-nats.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
push:
branches:
- master
- main
paths:
- 'nats/**'
pull_request:
paths:
- 'nats/**'
name: "Tests Nats Driver"
jobs:
Tests:
strategy:
matrix:
go-version:
- 1.20.x
- 1.21.x
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'
- name: Generate config
run: ./.github/scripts/gen-test-certs.sh
- name: Run NATS
run: |
docker run -d --name nats-jetstream -p 4443:4443 -v ./nats/testdata:/testdata -v ./tls:/tls nats:latest --jetstream -c /testdata/nats-tls.conf
sleep 2
- name: Test Nats
run: cd ./nats && go test ./... -v -race