export CGO_LDFLAGS := '-Lstorage/possum/lib/target/debug'

check:
    go test -run @ -failfast ./... > /dev/null

act:
    act -j test --env-file .empty.env

export GOPPROF := env("GOPPROF", "http")

test-short: build-possum
    GOPPROF='{{GOPPROF}}' go test -race -failfast -short ./...

test *args: build-possum
    go test -race {{ args }} ./...
    go test -race -run @ -benchtime 2x -bench . ./...

build-possum:
    cd storage/possum/lib && cargo build
