diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a016925..e0436c4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,11 @@ name: Check scripts with luacheck -on: [push, pull_request] +on: + push: + branches: [master] + paths: ["**/*.lua"] + pull_request: + paths: ["**/*.lua"] jobs: luacheck: @@ -15,13 +20,13 @@ jobs: - ver: luajit-2.0.5 std: luajit steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: Checkout repository - - uses: leafo/gh-actions-lua@v8.0.0 + - uses: leafo/gh-actions-lua@ecdb13962d7d7274594480620bb6075504122bfe name: Install lua [${{matrix.lua.ver}}] with: luaVersion: ${{matrix.lua.ver}} - - uses: leafo/gh-actions-luarocks@v4.0.0 + - uses: leafo/gh-actions-luarocks@4dcae7fc5aff45e847b32f62b60a13167e912395 name: Install luarocks - name: Install luacheck run: luarocks install luacheck diff --git a/.luacheckrc b/.luacheckrc index 8142961..1ad8235 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -6,7 +6,7 @@ read_globals = {'mp'} allow_defined_top = false -max_line_length = 80 +max_line_length = 100 max_comment_line_length = false