Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Oct 2, 2023
1 parent bfa739d commit 9987fd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lua_language_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Run Lua Language Server check
on:
workflow_call:
inputs:
matrix:
lua_ls_version:
required: true
type: string
neovim_versions:
required: true
type: string

Expand Down Expand Up @@ -32,7 +35,7 @@ jobs:
uses: actions/cache@v3
with:
path: _lua-ls
key: 3.7.0
key: ${{ inputs.lua_ls_version }}
- name: Prepare
run: |
test -d _neovim || {
Expand All @@ -41,7 +44,7 @@ jobs:
}
test -d _lua-ls || {
mkdir -p _lua-ls
curl -sL "https://github.com/LuaLS/lua-language-server/releases/download/3.7.0/lua-language-server-3.7.0-linux-x64.tar.gz" | tar xzf - -C "${PWD}/_lua-ls"
curl -sL "https://github.com/LuaLS/lua-language-server/releases/download/${{ inputs.lua_ls_version }}/lua-language-server-${{ inputs.lua_ls_version }}-linux-x64.tar.gz" | tar xzf - -C "${PWD}/_lua-ls"
}
- name: Run check
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Pull request check

on:
pull_request:
# pull_request:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -17,7 +18,8 @@ jobs:
lua-language-server:
uses: ./.github/workflows/lua_language_server.yml
with:
matrix: |
lua_ls_version: 3.7.0
neovim_versions: |
[ "nightly", "v0.9.2" ]
stylua:
Expand Down

0 comments on commit 9987fd7

Please sign in to comment.