To run tests, you need Docker which starts PostgreSQL and MySQL servers:
cd internal/dbtest
./test.sh
To ease debugging, you can run tests and print all executed queries:
BUNDEBUG=2 TZ= go test -run=TestName
- Run
release.sh
script which updates versions in go.mod files and pushes a new branch to GitHub:
TAG=v1.0.0 ./scripts/release.sh
-
Open a pull request and wait for the build to finish.
-
Merge the pull request and run
tag.sh
to create tags for packages:
TAG=v1.0.0 ./scripts/tag.sh
To contribute to the docs visit https://github.com/go-bun/bun-docs