Skip to content

Ubuntu Go Client Tests #834

Ubuntu Go Client Tests

Ubuntu Go Client Tests #834

name: Ubuntu Go Client Tests
on:
schedule:
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
ubuntu-go-client-tests:
runs-on: ubuntu-latest
env:
GODEBUG: x509sha1=1
steps:
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.22.2'
- name: Install nats-server
run: |
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out Go client code
uses: actions/checkout@v3
with:
repository: nats-io/nats.go
- name: Go Get Stuff
run: |
go get -t ./...
go install github.com/mattn/goveralls@latest;
go install github.com/wadey/gocovmerge@latest;
go install honnef.co/go/tools/cmd/staticcheck@latest;
go install github.com/client9/misspell/cmd/misspell@latest;
go get -modfile go_test.mod github.com/nats-io/nats-server/v2@main
- name: Run No Race Tests
run: go test -v -p=1 -run=TestNoRace ./... -count=1 -vet=off -timeout=30m -failfast