Merge pull request #1387 from gofiber/dependabot/go_modules/nats/gith… #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |