Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 305fb6f

Browse files
committed
add luaformat
1 parent fa1bb32 commit 305fb6f

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/lua-format.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lua Format
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
stylua:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Install Stylua
12+
run: |
13+
curl -L https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip -o stylua.zip
14+
unzip stylua.zip -d stylua-bin
15+
sudo mv stylua-bin/stylua /usr/local/bin/stylua
16+
17+
- name: Run Stylua check
18+
run: stylua --check .

.github/workflows/lua-lint.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,4 @@ jobs:
1919
echo "$HOME/.luarocks/bin" >> $GITHUB_PATH
2020
2121
- name: Run Luacheck
22-
run: luacheck .
23-
24-
name: Lua Format
25-
26-
on: [push, pull_request]
27-
28-
jobs:
29-
stylua:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v4
33-
34-
- name: Install Stylua
35-
run: |
36-
curl -L https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip -o stylua.zip
37-
unzip stylua.zip -d stylua-bin
38-
sudo mv stylua-bin/stylua /usr/local/bin/stylua
39-
40-
- name: Run Stylua check
41-
run: stylua --check .
22+
run: luacheck .

0 commit comments

Comments
 (0)