Back to course

CI/CD for Go with GitHub Actions

Go (Golang) for Cloud-Native Microservices

Automating Everything

Your code should be tested and built automatically on every push.

workflow.yml:

yaml

  • name: Run Tests run: go test -v ./...
  • name: Build binary run: go build -o main .

This ensures that no broken code ever reaches production.