]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/.github/workflows/windows_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:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / vim-lsp / .github / workflows / windows_neovim.yml
1 name: windows_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: [windows-latest]
22         name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
23         include:
24           - name: neovim-v04-x64
25             os: windows-latest
26             neovim_version: v0.4.4
27             neovim_arch: win64
28             allow_failure: false
29           - name: neovim-v05-x64
30             os: windows-latest
31             neovim_version: v0.5.1
32             neovim_arch: win64
33             allow_failure: false
34           - name: neovim-nightly-x64
35             os: windows-latest
36             neovim_version: nightly
37             neovim_arch: win64
38             allow_failure: true
39     runs-on: ${{matrix.os}}
40     continue-on-error: ${{matrix.allow_failure}}
41     steps:
42       - uses: actions/checkout@v4
43       - name: Download neovim
44         shell: PowerShell
45         run: Invoke-WebRequest -Uri https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-${{matrix.neovim_arch}}.zip -OutFile neovim.zip
46         continue-on-error: ${{matrix.allow_failure}}
47       - name: Extract neovim
48         shell: PowerShell
49         run: Expand-Archive -Path neovim.zip -DestinationPath $env:USERPROFILE
50         continue-on-error: ${{matrix.allow_failure}}
51       - name: Cache gopls
52         id: cache-gopls
53         uses: actions/cache@v4
54         with:
55           path: bin/gopls
56           key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
57       - name: Install Go for gopls
58         if: steps.cache-gopls.outputs.cache-hit != 'true'
59         uses: actions/setup-go@v5
60         with:
61           go-version: ${{ env.VIM_LSP_GO_VERSION }}
62       - name: Install gopls
63         if: steps.cache-gopls.outputs.cache-hit != 'true'
64         shell: bash
65         run: |
66           go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
67           gopls version
68           mkdir bin
69           mv "$(which gopls)" ./bin/
70         env:
71           GO111MODULE: 'on'
72       - name: Download test runner
73         uses: actions/checkout@v4
74         with:
75           repository: thinca/vim-themis
76           path: ./vim-themis
77           ref: v1.5.5
78       - name: Run tests
79         shell: cmd
80         run: |
81           SET PATH=%USERPROFILE%\Neovim\bin;%PATH%;
82           SET PATH=.\vim-themis\bin;%PATH%;
83           SET PATH=.\bin;%PATH%;
84           SET THEMIS_VIM=nvim
85           nvim --version
86           themis
87         continue-on-error: ${{matrix.allow_failure}}