From 8c42d4f384b070c31cb72d2a45e07a64b418be2a Mon Sep 17 00:00:00 2001 From: Eryk Szpotanski Date: Thu, 11 Apr 2024 00:38:06 +0200 Subject: [PATCH] [#57173] CI: Add lint Bazel files job Signed-off-by: Eryk Szpotanski --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51bc92a..5bcec87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,23 @@ on: pull_request: jobs: + lint: + name: Lint Bazel files + runs-on: ubuntu-22.04 + env: + DEBIAN_FRONTEND: "noninteractive" + steps: + - name: Download buildifier + run: | + wget https://github.com/bazelbuild/buildtools/releases/download/v6.4.0/buildifier-linux-amd64 -O /usr/local/bin/buildifier + chmod +x /usr/local/bin/buildifier + buildifier -version + - name: Checkout bazel-orfs + uses: actions/checkout@v4 + - name: Check Bazel files + run: | + buildifier -lint warn -r . + build-stage-target: name: Build sample stage targets runs-on: ubuntu-22.04