-
Notifications
You must be signed in to change notification settings - Fork 305
88 lines (85 loc) · 2.57 KB
/
linux_neovim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: linux_neovim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
include:
- name: neovim-v04-x64
os: ubuntu-latest
neovim_version: v0.4.4
allow_failure: false
- name: neovim-v05-x64
os: ubuntu-latest
neovim_version: v0.5.1
allow_failure: false
- name: neovim-nightly-x64
os: ubuntu-latest
neovim_version: nightly
allow_failure: true
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.allow_failure}}
steps:
- name: Install dependencies
shell: bash
run: |
# https://github.com/Zettlr/Zettlr/issues/3517
sudo apt-get install libfuse2
- uses: actions/checkout@v3
- name: Download neovim
shell: bash
run: |
mkdir -p ~/nvim/bin
curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim.appimage -o ~/nvim/bin/nvim
chmod u+x ~/nvim/bin/nvim
continue-on-error: ${{matrix.allow_failure}}
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v3
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v4
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Download test runner
uses: actions/checkout@v3
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Run tests
shell: bash
run: |
export PATH=~/nvim/bin:$PATH
export PATH=./vim-themis/bin:$PATH
export PATH=./bin:$PATH
export THEMIS_VIM=nvim
nvim --version
themis
continue-on-error: ${{matrix.allow_failure}}