ci: add Makefile
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -14,7 +14,7 @@ permissions:
|
|||||||
env:
|
env:
|
||||||
LUA_VERSION: "5.1"
|
LUA_VERSION: "5.1"
|
||||||
NVIM_VERSION: "v0.9.4"
|
NVIM_VERSION: "v0.9.4"
|
||||||
STYLUA_VERSION: "0.19"
|
STYLUA_VERSION: "0.19.1"
|
||||||
LUALS_VERSION: "3.7.3"
|
LUALS_VERSION: "3.7.3"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: leafo/gh-actions-luarocks@v4
|
- uses: leafo/gh-actions-luarocks@v4
|
||||||
|
|
||||||
- name: luacheck
|
- name: lint
|
||||||
run: |
|
run: |
|
||||||
luarocks install luacheck 1.1.1
|
luarocks install luacheck 1.1.1
|
||||||
make lint
|
make lint
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: stylua
|
- name: style
|
||||||
uses: JohnnyMorganz/stylua-action@v3
|
uses: JohnnyMorganz/stylua-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -62,6 +62,6 @@ jobs:
|
|||||||
mkdir -p luals
|
mkdir -p luals
|
||||||
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/${LUALS_VERSION}/lua-language-server-${LUALS_VERSION}-linux-x64.tar.gz" | tar zx --directory luals
|
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/${LUALS_VERSION}/lua-language-server-${LUALS_VERSION}-linux-x64.tar.gz" | tar zx --directory luals
|
||||||
|
|
||||||
- name: lua-language-server --check
|
- name: check
|
||||||
run: |
|
run: |
|
||||||
VIMRUNTIME=/home/runner/nvim-${NVIM_VERSION}/share/nvim/runtime PATH="luals/bin:${PATH}" make check
|
VIMRUNTIME=/home/runner/nvim-${NVIM_VERSION}/share/nvim/runtime PATH="luals/bin:${PATH}" make check
|
||||||
|
|||||||
Reference in New Issue
Block a user