Skip to content
File

Blob: .github/workflows/lint.yml

yaml34 lines
1name: Lint
2 
3on:
4 pull_request:
5 merge_group:
6 push:
7 branches:
8 - main
9 
10concurrency:
11 # Cancel existing builds for the same PR.
12 # Otherwise, all other builds will be allowed to run through.
13 group: lint.yml-${{ github.event.pull_request.number || github.run_id }}
14 cancel-in-progress: true
15 
16jobs:
17 lint:
18 runs-on: ubuntu-24.04
19 steps:
20 - uses: actions/checkout@v6
21 with:
22 show-progress: false
23 - name: Setup Runner
24 uses: ./.github/actions/setup-runner
25 with:
26 GOOGLESOURCE_COOKIE: ${{ secrets.GOOGLESOURCE_COOKIE }}
27 - name: Configure git hooks
28 # Configure git to quell an irrelevant warning for runners (they never commit / push).
29 run: git config core.hooksPath githooks
30 - name: Lint
31 run: |
32 bazel info output_base # Ensure bazel is initialized before proceeding
33 python3 ./tools/cross/format.py --check
34