]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/.github/workflows/linux_neovim.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

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