Files
OpenSTA/.github/workflows/buildifier.yaml
dependabot[bot] e865c5861b Bump the actions group with 2 updates
Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/cache](https://github.com/actions/cache).


Updates `actions/checkout` from 6.0.2 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6.0.2...3d3c42e5aac5ba805825da76410c181273ba90b1)

Updates `actions/cache` from 5.0.5 to 6.1.0
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/27d5ce7f107fe9357f9df03efb73ab90386fccae...55cc8345863c7cc4c66a329aec7e433d2d1c52a9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/cache
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-09-04 10:39:54 +00:00

45 lines
1.2 KiB
YAML

name: Lint Bazel
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
buildifier:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
check:
- name: Run buildifier format
run: ./buildifier -r -mode=check -lint=off .
- name: Run buildifier lint
run: ./buildifier -r -lint=warn .
name: ${{ matrix.check.name }}
env:
BUILDIFIER_VERSION: v8.2.1
steps:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache buildifier
id: cache-buildifier
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./buildifier
key: ${{ runner.os }}-buildifier-${{ env.BUILDIFIER_VERSION }}
- name: Download buildifier
if: steps.cache-buildifier.outputs.cache-hit != 'true'
run: |
wget https://github.com/bazelbuild/buildtools/releases/download/${BUILDIFIER_VERSION}/buildifier-linux-amd64 -O buildifier
chmod +x buildifier
- name: ${{ matrix.check.name }}
run: ${{ matrix.check.run }}