Skip to content

Commit b2aff31

Browse files
authored
Merge pull request #72 from dtolnay/starlarklint
Run `buck2 starlark lint` in CI
2 parents 25c716e + e5f606f commit b2aff31

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/reindeer.yml renamed to .github/workflows/lint.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Reindeer
1+
name: Lint
22

33
on:
44
push:
@@ -28,3 +28,14 @@ jobs:
2828
- run: reindeer buckify
2929
- name: Check reindeer-generated BUCK file up to date
3030
run: git diff --exit-code
31+
32+
starlark:
33+
name: Starlark lint
34+
needs: pre_ci
35+
if: needs.pre_ci.outputs.continue
36+
runs-on: ubuntu-latest
37+
timeout-minutes: 45
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: dtolnay/install-buck2@latest
41+
- run: git ls-files '*.bzl' '*.bxl' | xargs buck2 starlark lint

0 commit comments

Comments
 (0)