Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Apr 5, 2024
1 parent 342c256 commit 4769ea0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ read_globals = {'mp'}

allow_defined_top = false

max_line_length = 80
max_line_length = 100

max_comment_line_length = false

Expand Down

0 comments on commit 4769ea0

Please sign in to comment.