authkit initial

This commit is contained in:
juancwu 2026-04-26 01:36:53 +00:00
commit 134393fbca
43 changed files with 5188 additions and 1 deletions

53
Taskfile.yml Normal file
View 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