ci: add Makefile

This commit is contained in:
Alexander Courtis
2023-12-31 16:46:53 +11:00
parent d353323ff5
commit 4198691711

View File

@@ -12,9 +12,10 @@ permissions:
contents: read contents: read
env: env:
NVIM_VERSION: v0.9.4 LUA_VERSION: "5.1"
STYLUA_VERSION: 0.19 NVIM_VERSION: "v0.9.4"
LUALS_VERSION: 3.7.3 STYLUA_VERSION: "0.19"
LUALS_VERSION: "3.7.3"
jobs: jobs:
lint: lint:
@@ -24,7 +25,7 @@ jobs:
- uses: leafo/gh-actions-lua@v10 - uses: leafo/gh-actions-lua@v10
with: with:
luaVersion: "5.1" luaVersion: ${{ env.LUA_VERSION }}
- uses: leafo/gh-actions-luarocks@v4 - uses: leafo/gh-actions-luarocks@v4
@@ -63,4 +64,4 @@ jobs:
- name: lua-language-server --check - name: lua-language-server --check
run: | run: |
VIMRUNTIME=/home/runner/${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