▀▀█ ▀ ▄ ▄▄ ▄▄▄ █ ▄ ▄ ▄▄▄ █▀ ▀ █▀ █ █ █ █ █ █ █▀▀▀▀ █ █ █ █ █ ▀█▄▄▀ ▀▄▄ ▀▄▄▀█ ▄▄█▄▄
relui is a web interface for managing the release process of Go.
Run the command with the appropriate libpq-style environment variables set.
PGHOST=localhost PGDATABASE=relui-dev PGUSER=postgres go run ./
Alternatively, using docker:
make dev
Create or edit SQL files in internal/relui/queries
. After editing the query, run sqlc generate
in this directory. The internal/relui/db
package contains the generated code.
See sqlc documentation for further details.
Run go test with the appropriate libpq-style environment variables set. If the database connection fails, database integration tests will be skipped. If PGDATABSE is unset, relui-test is used by default.
PGHOST=localhost PGUSER=postgres go test -v ./... ../../internal/relui/...
Alternatively, using docker:
make test