Skip to content

Setup buf

Actions
Install buf for your GitHub Action workflows.
v1
Latest
Star (6)

Setup buf for GitHub Actions

This action will install the bufbuild/buf tooling inside of your GitHub Action workflow, making it available on the $PATH for use in your workflow build steps.

The bufbuild teams also offers a GitHub Actions workflow example using CMake, if that's more to your liking.

Current limitations

The buf tooling is still a work in progress.

As of 2020-06-25, only builds for Linux and Darwin are available. For this reason, this action will fail if used with a Windows or macOS runner.

Usage

Using the action is very simple.

name: Quality control pull requests

on: pull_request

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: wizhi/setup-buf@v1
        with:
          version: 0.32.0
      - run: buf check lint

  breaking:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: wizhi/setup-buf@v1
        with:
          version: 0.32.0
      - run: buf check breaking --against-input ".git#ref=${{ github.base_ref }}"

Setup buf is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install buf for your GitHub Action workflows.
v1
Latest

Setup buf is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.