File tree Expand file tree Collapse file tree 1 file changed +23
-16
lines changed Expand file tree Collapse file tree 1 file changed +23
-16
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- master
10
10
11
+ permissions :
12
+ contents : read
13
+
11
14
jobs :
12
- luacheck :
13
- name : luacheck
15
+ lint :
14
16
runs-on : ubuntu-latest
15
17
steps :
16
- - uses : actions/checkout@v4
18
+ - uses : actions/checkout@v3
19
+
20
+ - uses : leafo/gh-actions-lua@v10
21
+ with :
22
+ luaVersion : " 5.1"
23
+
24
+ - uses : leafo/gh-actions-luarocks@v4
17
25
18
- - name : Prepare
26
+ - name : luacheck
19
27
run : |
20
- sudo apt-get update
21
- sudo add-apt-repository universe
22
- sudo apt install luarocks -y
23
- sudo luarocks install luacheck
24
- - name : Run luacheck
25
- run : luacheck .
26
- stylua :
27
- name : stylua
28
+ luarocks install luacheck 1.1.1
29
+ luacheck lua
30
+
31
+ style :
28
32
runs-on : ubuntu-latest
29
33
steps :
30
- - uses : actions/checkout@v4
31
- - uses : JohnnyMorganz/stylua-action@v3
34
+ - uses : actions/checkout@v3
35
+
36
+ - name : stylua
37
+ uses : JohnnyMorganz/stylua-action@v3
32
38
with :
33
39
token : ${{ secrets.GITHUB_TOKEN }}
34
- version : latest
35
- args : --color always --check lua/
40
+ version : " 0.19"
41
+ args : --check lua
42
+
You can’t perform that action at this time.
0 commit comments