Skip to content

meetsubhojit/buf-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buf Example

Travis CI CircleCI GitHub Actions

This is a simple example of Buf usage that:

  • Installs buf from GitHub Releases.
  • Runs linting and breaking change detection.

CI is set up for:

The default make target is make local, which compares against the head of your local git main branch for breaking change detection.

The make targets make https and make ssh compare against the head of the remote git main branch, due to Travis and CircleCI not cloning any branch except for that under test. In this example, we use https for Travis, and both https and ssh for CircleCI, but you only need to choose one of https and ssh.

For GitHub Actions, you can use make local with a trick that clones the branch you want first, and then creates a local head for it. See ci.yaml for an example.

See buf.build for documentation.

About

Example repository that uses Buf.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 90.6%
  • Shell 9.4%