Skip to content

Commit

Permalink
fix(tests): Install Parser on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danymat committed Jul 28, 2024
1 parent 4a2f68d commit 7810eee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:
with:
repository: danymat/neogen
path: neogen
- uses: rhysd/action-setup-vim@v1

- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim }}

- name: Compile Needed Parsers
nvim --headless -c "TSInstallSync python lua julia" -c "q"

- name: Run tests
working-directory: ./neogen
run: |
nvim --version
make test
16 changes: 8 additions & 8 deletions tests/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ require("plenary.busted")

vim.cmd("runtime plugin/nvim-treesitter.lua")

-- Some tests require the Python parser
-- vim.cmd([[TSInstallSync! python]])
require("nvim-treesitter.configs").setup({
ensured_installed = {
"python",
"lua"
}
})
-- -- Some tests require the Python parser
-- -- vim.cmd([[TSInstallSync! python]])
-- require("nvim-treesitter.configs").setup({
-- ensured_installed = {
-- "python",
-- "lua"
-- }
-- })

require("neogen").setup({ snippet_engine = "nvim" })

0 comments on commit 7810eee

Please sign in to comment.