File: test.sh

package info (click to toggle)
golang-github-nats-io-jwt 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 680 kB
  • sloc: makefile: 30; sh: 26
file content (20 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e
# Run from directory above via ./scripts/test.sh

gofmt -s -w *.go
goimports -w *.go
go vet ./...
go test -v
go test -v --race

cd v2 && (
  gofmt -s -w *.go
  goimports -w *.go
  go vet -modfile=go_test.mod ./...
  go test github.com/nats-io/jwt/v2 -v
  go test github.com/nats-io/jwt/v2 -v --race
  go test -modfile=go_test.mod github.com/nats-io/jwt/v2/test -v
  go test -modfile=go_test.mod github.com/nats-io/jwt/v2/test -v --race
)

staticcheck ./...