tranngoclam / monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monorepo

Continuous Integration

Prerequisites

  • Go 1.22+
  • Bazelisk

Using Go Workspace

  • Initialize go.work
go work init ./bar ./foo ./lib ./api
  • Sync modules in workspace
go work sync

Using Bazel

  • Update BUILD files
bazel run //:gazelle
  • Sync go dependencies
bazel run //:gazellel-update-repos
  • Run tests
bazel test //...
  • Build binaries
bazel build //...
  • Run binary
bazel run //foo
bazel run //bar
  • Run all
tilt up

About


Languages

Language:Starlark 69.3%Language:Dockerfile 14.9%Language:Go 8.7%Language:Makefile 7.1%