Skip to content

Commit c89d5a6

Browse files
committed
ci: format lua
1 parent 9cdc7aa commit c89d5a6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/format.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: format
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "ci"
7+
paths:
8+
- "lua/**"
9+
10+
jobs:
11+
stylua-check:
12+
name: "Formatting check with Stylua"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Lint with stylua
18+
uses: JohnnyMorganz/stylua-action@v2
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
# CLI arguments
22+
version: 0.15.3
23+
args: --check .

0 commit comments

Comments
 (0)