Skip to content

Commit 4769ea0

Browse files
ci: update workflow
1 parent 342c256 commit 4769ea0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/lint.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Check scripts with luacheck
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [master]
6+
paths: ["**/*.lua"]
7+
pull_request:
8+
paths: ["**/*.lua"]
49

510
jobs:
611
luacheck:
@@ -15,13 +20,13 @@ jobs:
1520
- ver: luajit-2.0.5
1621
std: luajit
1722
steps:
18-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
1924
name: Checkout repository
20-
- uses: leafo/gh-actions-lua@v8.0.0
25+
- uses: leafo/gh-actions-lua@ecdb13962d7d7274594480620bb6075504122bfe
2126
name: Install lua [${{matrix.lua.ver}}]
2227
with:
2328
luaVersion: ${{matrix.lua.ver}}
24-
- uses: leafo/gh-actions-luarocks@v4.0.0
29+
- uses: leafo/gh-actions-luarocks@4dcae7fc5aff45e847b32f62b60a13167e912395
2530
name: Install luarocks
2631
- name: Install luacheck
2732
run: luarocks install luacheck

.luacheckrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ read_globals = {'mp'}
66

77
allow_defined_top = false
88

9-
max_line_length = 80
9+
max_line_length = 100
1010

1111
max_comment_line_length = false
1212

0 commit comments

Comments
 (0)