chore(ci): setup llscheck
This commit is contained in:
parent
f599e75963
commit
8c1b89b449
3 changed files with 49 additions and 2 deletions
29
.github/workflows/linters.yml
vendored
29
.github/workflows/linters.yml
vendored
|
|
@ -24,6 +24,35 @@ jobs:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: .
|
args: .
|
||||||
|
|
||||||
|
llscheck:
|
||||||
|
name: llscheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Task
|
||||||
|
uses: arduino/setup-task@v1
|
||||||
|
with:
|
||||||
|
version: 3.x
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install NeoVim
|
||||||
|
uses: rhysd/action-setup-vim@v1
|
||||||
|
with:
|
||||||
|
neovim: true
|
||||||
|
version: stable
|
||||||
|
|
||||||
|
- uses: leafo/gh-actions-lua@v12
|
||||||
|
- uses: leafo/gh-actions-luarocks@v4
|
||||||
|
|
||||||
|
- name: Install llscheck
|
||||||
|
run: |
|
||||||
|
luarocks install lua-language-server
|
||||||
|
luarocks install llscheck
|
||||||
|
|
||||||
|
- name: llscheck
|
||||||
|
run: task llscheck
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
13
.github/workflows/luarc.json
vendored
Normal file
13
.github/workflows/luarc.json
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"diagnostics.libraryFiles": "Disable",
|
||||||
|
"runtime.version": "LuaJIT",
|
||||||
|
"workspace.checkThirdParty": "Disable",
|
||||||
|
"workspace.library": [
|
||||||
|
"$VIMRUNTIME/lua",
|
||||||
|
"lua",
|
||||||
|
".tests/site/pack/deps/start/mini.doc/lua",
|
||||||
|
".tests/site/pack/deps/start/mini.test/lua",
|
||||||
|
".tests/site/pack/deps/start/nvim-treesitter/lua",
|
||||||
|
".tests/site/pack/deps/start/tokyonight.nvim/lua"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -21,8 +21,13 @@ tasks:
|
||||||
-u ./scripts/minimal_init.lua \
|
-u ./scripts/minimal_init.lua \
|
||||||
-c "lua MiniTest.run()" \
|
-c "lua MiniTest.run()" \
|
||||||
-c ":qa!"
|
-c ":qa!"
|
||||||
nvim:
|
|
||||||
cmd: nvim --clean -u "./scripts/minimal_init.lua" {{ .CLI_ARGS }}
|
llscheck:
|
||||||
|
desc: run type checking
|
||||||
|
cmd: |
|
||||||
|
VIMRUNTIME="`nvim --clean --headless +'lua io.write(vim.env.VIMRUNTIME)' +q`" \
|
||||||
|
llscheck --configpath=.github/workflows/luarc.json\
|
||||||
|
--checklevel Error
|
||||||
|
|
||||||
docgen:
|
docgen:
|
||||||
desc: generate vimhelp
|
desc: generate vimhelp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue