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
+ ---
1
2
name : code_checks
2
3
3
4
on : [push, pull_request]
8
9
runs-on : ubuntu-latest
9
10
10
11
steps :
11
- - uses : actions/checkout@v4
12
+ - uses : actions/checkout@v4
12
13
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 .
18
19
19
20
lint :
20
21
runs-on : ubuntu-latest
21
22
22
23
steps :
23
- - uses : actions/checkout@v4
24
+ - uses : actions/checkout@v4
24
25
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
32
39
33
40
test :
34
41
runs-on : ubuntu-latest
35
42
36
43
steps :
37
- - uses : actions/checkout@v4
44
+ - uses : actions/checkout@v4
38
45
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"
42
49
43
- - uses : leafo/gh-actions-luarocks@v4
50
+ - uses : leafo/gh-actions-luarocks@v4
44
51
45
- - name : setup
46
- run : |
47
- luarocks install busted
52
+ - name : setup
53
+ run : |
54
+ luarocks install busted
48
55
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