mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 13:29:30 +08:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
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
|
|
- 1.22.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 5
|
|
- name: Test Nats
|
|
run: cd ./nats && go test ./... -v -race
|