-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af58360
commit 78d1324
Showing
5 changed files
with
126 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Run Lua Language Server check | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
matrix: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
lua-language-server: | ||
name: lua language server | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{ fromJson(inputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: date +%F > todays-date | ||
- name: Restore cache for today's nightly. | ||
uses: actions/cache@v3 | ||
with: | ||
path: _neovim | ||
key: ${{ matrix.rev }}-${{ hashFiles('todays-date') }} | ||
- name: Restore vendor dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ hashFiles('todays-date') }} | ||
- name: Restore cache for lua LS | ||
uses: actions/cache@v3 | ||
with: | ||
path: _lua-ls | ||
key: 3.7.0 | ||
- name: Prepare | ||
run: | | ||
test -d _neovim || { | ||
mkdir -p _neovim | ||
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim" | ||
} | ||
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" | ||
} | ||
- name: Run check | ||
run: | | ||
export PATH="${PWD}/_neovim/bin:${PATH}" | ||
export PATH="${PWD}/_lua-ls/bin:${PATH}" | ||
export VIM="${PWD}/_neovim/share/nvim/runtime" | ||
nvim --version | ||
make lua-language-server type_version=${{ matrix.type_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Run tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
matrix: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
tests: | ||
name: unit tests | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{ fromJson(inputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: date +%F > todays-date | ||
- name: Restore cache for today's nightly. | ||
uses: actions/cache@v3 | ||
with: | ||
path: _neovim | ||
key: ${{ matrix.rev }}-${{ hashFiles('todays-date') }} | ||
- name: Prepare | ||
run: | | ||
test -d _neovim || { | ||
mkdir -p _neovim | ||
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim" | ||
} | ||
- name: Run tests | ||
run: | | ||
export PATH="${PWD}/_neovim/bin:${PATH}" | ||
export VIM="${PWD}/_neovim/share/nvim/runtime" | ||
nvim --version | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters