File tree Expand file tree Collapse file tree 1 file changed +33
-25
lines changed
Expand file tree Collapse file tree 1 file changed +33
-25
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : code_checks
23
34on : [push, pull_request]
89 runs-on : ubuntu-latest
910
1011 steps :
11- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v4
1213
13- - uses : JohnnyMorganz/stylua-action@v3
14- with :
15- version : 0.18.2
16- token : ${{ secrets.GITHUB_TOKEN }}
17- args : --check .
14+ - uses : JohnnyMorganz/stylua-action@v3
15+ with :
16+ version : 0.18.2
17+ token : ${{ secrets.GITHUB_TOKEN }}
18+ args : --check .
1819
1920 lint :
2021 runs-on : ubuntu-latest
2122
2223 steps :
23- - uses : actions/checkout@v4
24+ - uses : actions/checkout@v4
2425
25- - name : setup
26- run : |
27- sudo apt install luarocks -qyy
28- sudo luarocks install luacheck
29- - name : lint
30- run : |
31- luacheck .
26+ - uses : leafo/gh-actions-lua@v10
27+ with :
28+ luaVersion : " 5.1"
29+
30+ - uses : leafo/gh-actions-luarocks@v4
31+
32+ - name : setup
33+ run : |
34+ luarocks install luacheck
35+
36+ - name : lint
37+ run : |
38+ luacheck .spec src
3239
3340 test :
3441 runs-on : ubuntu-latest
3542
3643 steps :
37- - uses : actions/checkout@v4
44+ - uses : actions/checkout@v4
3845
39- - uses : leafo/gh-actions-lua@v10
40- with :
41- luaVersion : " 5.1"
46+ - uses : leafo/gh-actions-lua@v10
47+ with :
48+ luaVersion : " 5.1"
4249
43- - uses : leafo/gh-actions-luarocks@v4
50+ - uses : leafo/gh-actions-luarocks@v4
4451
45- - name : setup
46- run : |
47- luarocks install busted
52+ - name : setup
53+ run : |
54+ luarocks install busted
4855
49- - name : test
50- run : |
51- busted -o utfTerminal .spec
56+ - name : test
57+ run : |
58+ busted -o utfTerminal .spec
59+ ...
You can’t perform that action at this time.
0 commit comments