X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5a4872f466ebd76ddd532bdf2798554421c53df4..fe3919e725e156d751069662d11e38f7b4791de1:/.vim/bundle/vim-lsp/.github/workflows/mac_neovim.yml diff --git a/.vim/bundle/vim-lsp/.github/workflows/mac_neovim.yml b/.vim/bundle/vim-lsp/.github/workflows/mac_neovim.yml new file mode 100644 index 00000000..c06dee23 --- /dev/null +++ b/.vim/bundle/vim-lsp/.github/workflows/mac_neovim.yml @@ -0,0 +1,76 @@ +name: mac_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: [macos-latest] + name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64] + include: + - name: neovim-v04-x64 + os: macos-latest + neovim_version: v0.4.4 + allow_failure: false + - name: neovim-v05-x64 + os: macos-latest + neovim_version: v0.5.1 + allow_failure: false + - name: neovim-nightly-x64 + os: macos-latest + neovim_version: nightly + allow_failure: true + runs-on: ${{matrix.os}} + continue-on-error: ${{matrix.allow_failure}} + steps: + - uses: actions/checkout@v4 + - name: Download neovim + shell: bash + run: curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-macos.tar.gz -o ~/nvim.tar.gz + continue-on-error: ${{matrix.allow_failure}} + - name: Extract neovim + shell: bash + run: tar xzf ~/nvim.tar.gz -C ~/ + continue-on-error: ${{matrix.allow_failure}} + - name: Download test runner + uses: actions/checkout@v4 + with: + repository: thinca/vim-themis + path: ./vim-themis + ref: v1.5.5 + - name: Install Go for gopls + uses: actions/setup-go@v5 + with: + go-version: ${{ env.VIM_LSP_GO_VERSION }} + - name: Install gopls + 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: Run tests + shell: bash + run: | + export PATH=~/nvim-osx64/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}}