forked from fastvim/fastvim
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (75 loc) · 2.21 KB
/
llscheck.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: llscheck
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
push:
branches:
- main
jobs:
llscheck:
runs-on: ubuntu-latest
name: llscheck
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
# NOTE: We need Neovim installed in order to expose the $VIMRUNTIME
# environment variable
with:
neovim: true
version: stable
- name: Install A Lua Interpreter
uses: leafo/gh-actions-lua@v10
with:
# Neovim is compiled with LuaJIT so we might as well match. But it
# doesn't look like we can match it exactly.
#
# Reference:
# https://github.com/leafo/gh-actions-lua/issues/49#issuecomment-2295071198
#
luaVersion: "luajit-openresty"
- name: Install lua-language-server
uses: jdx/mise-action@v2
with:
tool_versions: |
lua-language-server latest
- name: Install luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install llscheck
run: |
luarocks install llscheck
luarocks install nlua
- name: Clone Dependencies - busted
uses: actions/checkout@v4
with:
repository: "LuaCATS/busted"
path: ".dependencies/busted"
- name: Clone Dependencies - luassert
uses: actions/checkout@v4
with:
repository: "LuaCATS/luassert"
path: ".dependencies/luassert"
- name: Clone Dependencies - luavit-meta
uses: actions/checkout@v4
with:
repository: "Bilal2453/luvit-meta"
path: ".dependencies/luvit-meta"
- name: Clone Dependencies - mega.cmdparse
uses: actions/checkout@v4
with:
repository: "ColinKennedy/mega.cmdparse"
path: ".dependencies/mega.cmdparse"
- name: Clone Dependencies - mega.logging
uses: actions/checkout@v4
with:
repository: "ColinKennedy/mega.logging"
path: ".dependencies/mega.logging"
- name: Print Version
run: |
lua-language-server --version
- name: Test
run: |
make llscheck CONFIGURATION=.github/workflows/.luarc.json