2021-08-23 23:17:20 +00:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
appimage-ubuntu:
|
|
|
|
name: Appimage-ubuntu
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-08-24 07:24:42 +00:00
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: '^1.15.1' # The Go version to download (if necessary) and use.
|
2021-08-23 23:17:20 +00:00
|
|
|
- run: date +%F > todays-date
|
|
|
|
- name: Restore cache for today's nightly.
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
|
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
|
|
|
sudo apt install fd-find
|
|
|
|
test -d build || {
|
|
|
|
mkdir -p build
|
|
|
|
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
|
|
|
chmod +x nvim.appimage
|
|
|
|
mv nvim.appimage ./build/nvim
|
|
|
|
}
|
2021-08-24 07:24:42 +00:00
|
|
|
GO111MODULE=on go get golang.org/x/tools/gopls@latest
|
|
|
|
|
2021-08-23 23:17:20 +00:00
|
|
|
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
|
|
|
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
|
|
|
git clone --depth 1 https://github.com/ray-x/guihua.lua ~/.local/share/nvim/site/pack/vendor/start/guihua.lua
|
2021-08-24 07:24:42 +00:00
|
|
|
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter
|
2021-08-23 23:17:20 +00:00
|
|
|
git clone --depth 1 https://github.com/kyazdani42/nvim-web-devicons ~/.local/share/nvim/site/pack/vendor/start/nvim-web-devicons
|
2021-08-24 07:31:09 +00:00
|
|
|
git clone --depth 1 https://github.com/neovim/nvim-lspconfig ~/.local/share/nvim/site/pack/vendor/start/nvim-lspconfig
|
2021-08-23 23:17:20 +00:00
|
|
|
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
export PATH="${PWD}/build/:${PATH}"
|
2021-08-24 07:24:42 +00:00
|
|
|
nvim --headless -u tests/minimal.vim -c "TSInstallSync go" -c "q"
|
2021-08-23 23:17:20 +00:00
|
|
|
make test
|