Skip to content

Commit da0ac04

Browse files
ci(lint): update workflow
1 parent 012b388 commit da0ac04

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/lint.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ name: Check scripts with luacheck
33
on:
44
push:
55
branches: [master]
6-
paths: ["**/*.lua"]
6+
paths-ignore:
7+
- _config.yml
8+
- LICENSE.txt
9+
- README.md
10+
- open-dialog/README.md
711
pull_request:
8-
paths: ["**/*.lua"]
12+
paths-ignore:
13+
- _config.yml
14+
- LICENSE.txt
15+
- README.md
16+
- open-dialog/README.md
917

1018
jobs:
1119
luacheck:
@@ -20,14 +28,16 @@ jobs:
2028
- ver: luajit-2.0.5
2129
std: luajit
2230
steps:
23-
- uses: actions/checkout@v4
24-
name: Checkout repository
25-
- uses: leafo/gh-actions-lua@ecdb13962d7d7274594480620bb6075504122bfe
26-
name: Install lua [${{matrix.lua.ver}}]
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
- name: Install lua [${{matrix.lua.ver}}]
34+
uses: leafo/gh-actions-lua@v11
2735
with:
2836
luaVersion: ${{matrix.lua.ver}}
29-
- uses: leafo/gh-actions-luarocks@4dcae7fc5aff45e847b32f62b60a13167e912395
30-
name: Install luarocks
37+
- name: Install luarocks
38+
uses: leafo/gh-actions-luarocks@v5
39+
with:
40+
luarocksVersion: 3.12.2
3141
- name: Install luacheck
3242
run: luarocks install luacheck
3343
- name: Lint with luacheck

0 commit comments

Comments
 (0)