Skip to content

Commit 8229a57

Browse files
committed
Add Buildifier
1 parent 0623f39 commit 8229a57

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Linters
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.10"
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install pylint
22+
wget https://github.com/bazelbuild/buildtools/releases/download/v8.5.1/buildifier-linux-amd64 -O /usr/local/bin/buildifier
23+
chmod +x /usr/local/bin/buildifier
24+
25+
- name: Analyzing the code with Buildifier
26+
run: |
27+
buildifier -diff_command=diff -d -r .
28+
29+
# TODO: Add more linters here

0 commit comments

Comments
 (0)