ci: refactor to using mise #616
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lua Language Server Diagnostics | |
| on: | |
| pull_request: ~ | |
| push: | |
| branches: | |
| - '*' | |
| env: | |
| MISE_AUTO_INSTALL_DISABLE_TOOLS: cargo-binstall,cargo:emmylua_ls,cargo:emmylua_check | |
| jobs: | |
| luals-check: | |
| strategy: | |
| matrix: | |
| neovim: ["nightly"] | |
| lua: ["luajit-master", "5.1"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: luarocks/gh-actions-lua@v10 | |
| with: | |
| luaVersion: ${{matrix.lua}} | |
| - name: Install tools | |
| uses: jdx/mise-action@v2 | |
| with: | |
| install_args: "github:neovim/neovim@${{matrix.neovim}}" | |
| - name: Run lua-language-server check | |
| run: | | |
| mise use github:neovim/neovim@${{matrix.neovim}} | |
| mise run deps | |
| NEOTREE_LUARC=".github/workflows/.luarc-${{ matrix.lua }}.json" mise run luals-check |