Skip to content

Commit

Permalink
fixup! TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Aug 29, 2023
1 parent 91f41d6 commit da0a878
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:

jobs:
run_tests:
tests:
name: unit tests
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -38,6 +38,43 @@ jobs:
nvim --version
make test
lua-language-server:
name: unit tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
rev: nightly/nvim-linux64.tar.gz
version: nightly
- os: ubuntu-22.04
rev: v0.9.1/nvim-linux64.tar.gz
version: stable
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: ${{ runner.os }}-${{ 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"
}
git clone https://github.com/LuaLS/lua-language-server
cd lua-language-server && ./make.sh
- name: Run check
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
make lua-language-server version=${{ matrix.version }}
stylua:
name: stylua
runs-on: ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ test: dependencies
lint:
luacheck .

lua-language-server:
lua-language-server --configpath .ci.$(version).luarc.json --logpath lua-language-server-log --check .

dependencies:
if [ ! -d vendor ]; then \
git clone --depth 1 \
Expand Down

0 comments on commit da0a878

Please sign in to comment.