Skip to content

Setup buildifier

Actions
Sets up the buildifier
v1.0.1
Latest
Star (2)

setup-buildifier action

verify-action.yml

GitHub Action for setting up Bazel's build tool buildifier for checking and formatting Bazel's files format checks on Bazel files using buildifier checks. Works on windows, linux and macOS.

Buildifier automatically checks one of the Bazel's files:

  • BUILD
  • WORKSPACE
  • .bzl

Inputs

Name Description Required Default
version The version of the used buildifier false 6.0.0

Example Usage

To use setup-buildifier you can follow presented examples to see how it works:

Check every file

name: Bazel files check
on: [push]
jobs:
  formatting-check:
    name: Formatting Bazel files check
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Setup buildifier
      uses: jbajic/setup-buildifier@v1

    - name: Run buildifier
      run: |
        buildifier -mode check -r .

License

Apache-2.0

Setup buildifier 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

Sets up the buildifier
v1.0.1
Latest

Setup buildifier 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.