]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/.github/workflows/mac_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 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / vim-lsp / .github / workflows / mac_neovim.yml
1 name: mac_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: [macos-latest]
22         name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
23         include:
24           - name: neovim-v04-x64
25             os: macos-latest
26             neovim_version: v0.4.4
27             allow_failure: false
28           - name: neovim-v05-x64
29             os: macos-latest
30             neovim_version: v0.5.1
31             allow_failure: false
32           - name: neovim-nightly-x64
33             os: macos-latest
34             neovim_version: nightly
35             allow_failure: true
36     runs-on: ${{matrix.os}}
37     continue-on-error: ${{matrix.allow_failure}}
38     steps:
39       - uses: actions/checkout@v4
40       - name: Download neovim
41         shell: bash
42         run: curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-macos.tar.gz -o ~/nvim.tar.gz
43         continue-on-error: ${{matrix.allow_failure}}
44       - name: Extract neovim
45         shell: bash
46         run: tar xzf ~/nvim.tar.gz -C ~/
47         continue-on-error: ${{matrix.allow_failure}}
48       - name: Download test runner
49         uses: actions/checkout@v4
50         with:
51           repository: thinca/vim-themis
52           path: ./vim-themis
53           ref: v1.5.5
54       - name: Install Go for gopls
55         uses: actions/setup-go@v5
56         with:
57           go-version: ${{ env.VIM_LSP_GO_VERSION }}
58       - name: Install gopls
59         shell: bash
60         run: |
61           go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
62           gopls version
63           mkdir bin
64           mv "$(which gopls)" ./bin/
65         env:
66           GO111MODULE: 'on'
67       - name: Run tests
68         shell: bash
69         run: |
70           export PATH=~/nvim-osx64/bin:$PATH
71           export PATH=./vim-themis/bin:$PATH
72           export PATH=./bin:$PATH
73           export THEMIS_VIM=nvim
74           nvim --version
75           themis
76         continue-on-error: ${{matrix.allow_failure}}