Skip to content

Windows Go Client Tests #771

Windows Go Client Tests

Windows Go Client Tests #771

name: Windows Go Client Tests
on:
schedule:
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
windows-go-client-tests:
runs-on: windows-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: |
git clone https://github.com/nats-io/nats-server.git
cd nats-server
go get
go build main.go
copy /Y main.exe ..\nats-server.exe
cd ..
rd /S /Q nats-server
nats-server -v
shell: cmd
- 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
shell: cmd
- name: Run No Race Tests
run: go test -v -p=1 -run=TestNoRace ./... -count=1 -vet=off -timeout=30m -failfast
shell: cmd