]> git.madduck.net Git - etc/vim.git/blobdiff - .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:

Merge commit 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / vim-lsp / .github / workflows / windows_neovim.yml
diff --git a/.vim/bundle/vim-lsp/.github/workflows/windows_neovim.yml b/.vim/bundle/vim-lsp/.github/workflows/windows_neovim.yml
new file mode 100644 (file)
index 0000000..e0a3e60
--- /dev/null
@@ -0,0 +1,87 @@
+name: windows_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: [windows-latest]
+        name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
+        include:
+          - name: neovim-v04-x64
+            os: windows-latest
+            neovim_version: v0.4.4
+            neovim_arch: win64
+            allow_failure: false
+          - name: neovim-v05-x64
+            os: windows-latest
+            neovim_version: v0.5.1
+            neovim_arch: win64
+            allow_failure: false
+          - name: neovim-nightly-x64
+            os: windows-latest
+            neovim_version: nightly
+            neovim_arch: win64
+            allow_failure: true
+    runs-on: ${{matrix.os}}
+    continue-on-error: ${{matrix.allow_failure}}
+    steps:
+      - uses: actions/checkout@v4
+      - name: Download neovim
+        shell: PowerShell
+        run: Invoke-WebRequest -Uri https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-${{matrix.neovim_arch}}.zip -OutFile neovim.zip
+        continue-on-error: ${{matrix.allow_failure}}
+      - name: Extract neovim
+        shell: PowerShell
+        run: Expand-Archive -Path neovim.zip -DestinationPath $env:USERPROFILE
+        continue-on-error: ${{matrix.allow_failure}}
+      - name: Cache gopls
+        id: cache-gopls
+        uses: actions/cache@v4
+        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@v5
+        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@v4
+        with:
+          repository: thinca/vim-themis
+          path: ./vim-themis
+          ref: v1.5.5
+      - name: Run tests
+        shell: cmd
+        run: |
+          SET PATH=%USERPROFILE%\Neovim\bin;%PATH%;
+          SET PATH=.\vim-themis\bin;%PATH%;
+          SET PATH=.\bin;%PATH%;
+          SET THEMIS_VIM=nvim
+          nvim --version
+          themis
+        continue-on-error: ${{matrix.allow_failure}}