-
-
Notifications
You must be signed in to change notification settings - Fork 161
42 lines (34 loc) 路 1.34 KB
/
Copy pathlua-ls-check.yml
File metadata and controls
42 lines (34 loc) 路 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lua LS Diagnostics
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lua-ls-diagnostics:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Neovim
run: |
curl -L https://github.com/neovim/neovim/releases/download/v0.11.5/nvim-linux-x86_64.tar.gz -o /opt/nvim.tar.gz
mkdir /opt/nvim
tar xzf /opt/nvim.tar.gz -C /opt/nvim
mv /opt/nvim/nvim-linux-x86_64/* /opt/nvim
echo "/opt/nvim/bin" >> $GITHUB_PATH
- name: Install Lua Language Server
run: |
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/3.15.0/lua-language-server-3.15.0-linux-x64.tar.gz" -o /opt/lls.tar.gz
mkdir /opt/lls
tar -xzf /opt/lls.tar.gz -C /opt/lls
echo "/opt/lls/bin" >> $GITHUB_PATH
- name: Clone luvit-meta
run: git clone --depth=1 https://github.com/Bilal2453/luvit-meta /opt/luvit-meta
- name: Clone snacks.nvim
run: git clone --depth=1 https://github.com/folke/snacks.nvim /opt/snacks.nvim
- name: Clone blink.cmp
run: git clone --depth=1 https://github.com/Saghen/blink.cmp /opt/blink.cmp
- name: Run Lua LS diagnostics
run: |
lua-language-server --configpath .luarc.ci.json --check=.