Skip to content

update collector(v2): unit test #30

update collector(v2): unit test

update collector(v2): unit test #30

Workflow file for this run

name: Testing
on:
push:
branches: [ main ]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker-compose -f ".github/compose/docker-compose.yml" up -d
- uses: actions/setup-go@v5
with:
go-version: ~1.23
- run: go test -race -covermode atomic -coverprofile=covprofile ./client/...
env:
GO111MODULE: on
NATS_HOSTS: nats://127.0.0.1:4222,nats://127.0.0.1:4223,nats://127.0.0.1:4224
NATS_TOKEN: s3cr3t
- run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}