authkit initial
This commit is contained in:
parent
5173b0a43d
commit
134393fbca
43 changed files with 5188 additions and 1 deletions
53
Taskfile.yml
Normal file
53
Taskfile.yml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
version: '3'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
desc: Run vet and unit tests
|
||||
cmds:
|
||||
- task: check
|
||||
|
||||
install:tools:
|
||||
desc: Install development tools (tparse for prettier test output)
|
||||
cmds:
|
||||
- go install github.com/mfridman/tparse@latest
|
||||
|
||||
build:
|
||||
desc: Build all packages
|
||||
cmds:
|
||||
- go build ./...
|
||||
|
||||
test:
|
||||
desc: Run unit tests with prettier output via tparse
|
||||
cmds:
|
||||
- set -o pipefail && go test ./... -json -cover | tparse -all
|
||||
|
||||
test:race:
|
||||
desc: Run unit tests under the race detector
|
||||
cmds:
|
||||
- set -o pipefail && go test ./... -race -json | tparse -all
|
||||
|
||||
test:integration:
|
||||
desc: Run sqlstore integration tests against a real Postgres (requires AUTHKIT_TEST_DATABASE_URL)
|
||||
cmds:
|
||||
- set -o pipefail && go test ./sqlstore/... -run Integration -count=1 -json | tparse -all
|
||||
|
||||
vet:
|
||||
desc: Run go vet
|
||||
cmds:
|
||||
- go vet ./...
|
||||
|
||||
fmt:
|
||||
desc: Format Go source files
|
||||
cmds:
|
||||
- gofmt -w .
|
||||
|
||||
tidy:
|
||||
desc: Tidy go.mod
|
||||
cmds:
|
||||
- go mod tidy
|
||||
|
||||
check:
|
||||
desc: Run vet and unit tests
|
||||
cmds:
|
||||
- task: vet
|
||||
- task: test
|
||||
Loading…
Add table
Add a link
Reference in a new issue