only luacheck files from the repo #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Lua | |
uses: leafo/gh-actions-lua@v10 | |
with: | |
luaVersion: "5.1" # Neovim uses Lua 5.1 | |
- name: Setup Luarocks | |
uses: leafo/gh-actions-luarocks@v4 | |
- name: Install luacheck | |
run: luarocks install luacheck | |
- name: Run luacheck | |
# https://luacheck.readthedocs.io/en/stable/cli.html | |
# https://luacheck.readthedocs.io/en/stable/warnings.html | |
run: | | |
luacheck . --no-max-line-length --std luajit --globals vim -u --ignore 512 --include-files lua --include-files test |