Skip to content

Merge pull request #23321 from rockwotj/rpk-gazelle #43

Merge pull request #23321 from rockwotj/rpk-gazelle

Merge pull request #23321 from rockwotj/rpk-gazelle #43

Workflow file for this run

name: Lint cpp
on:
push:
branches:
- 'dev'
paths:
- '**.h'
- '**.cc'
- '**.cpp'
- '**.proto'
- '**.java'
tags-ignore:
- '**'
pull_request:
paths:
- '**.h'
- '**.cc'
- '**.cpp'
- '**.proto'
- '**.java'
jobs:
cpp:
name: Lint files with clang-format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Baselisk
run: |
mkdir -v -p $HOME/.local/bin
wget -O $HOME/.local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
chmod +x $HOME/.local/bin/bazel
- name: Run clang-format
run: |
bazel run //tools:clang_format
git diff --exit-code