Buildkite Golang Example

This repository is an example Buildkite pipeline that runs and tests a Golang project without using Docker.

See the full Getting Started Guide for step-by-step instructions on how to get this running.

Screenshot of Buildkite Golang example pipeline

How it works

This example:

  • Includes a basic main.go file that prints a message (tested via main_test.go)
  • Uses Go’s built-in testing package with Testify for assertions.
  • Runs go test and go vet via .buildkite/pipeline.yml
  • Runs on a Buildkite-hosted agent with Go preinstalled (no Docker setup needed)

🐳 Interested in a Docker-based Go example instead? Check out buildkite/golang-docker-example

Requirements

  • A Buildkite agent with Go installed (or you can use a Buildkite-hosted agent image with Go preinstalled, like this repo does - no setup needed!) See Buildkite Hosted Agents for details.

💡 In this example, the default queue is set in the Buildkite Pipeline Settings → Steps UI, so there’s no need to specify it inside the .buildkite/pipeline.yml file.

License

See LICENSE.md (MIT)

More examples

Start turning complexity into an advantage

Create an account to get started with a 30-day free trial. No credit card required.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Public pipelines
  3. Test Engine
  4. Package Registries
  5. Mobile Delivery Cloud
  6. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Example pipelines
  5. Plugins
  6. Webinars
  7. Case studies
  8. Events
  9. Migration Services
  10. Comparisons

Company

  1. About
  2. Careers
  3. Press
  4. Brand assets
  5. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML
  3. Testing at scale
  4. Monorepo mojo
  5. Bazel orchestration

Legal

  1. Terms of Service
  2. Acceptable Use Policy
  3. Privacy Policy
  4. Subprocessors
  5. Service Level Agreement

Support

  1. System status
  2. Forum
© Buildkite Pty Ltd 2025