Skip to content

Commit

Permalink
Test github action for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronik committed Dec 15, 2024
1 parent f54d28b commit aadf689
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests

on:
push:
branches: [ "*" ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Neovim
run: |
sudo snap install nvim --classic
# sudo add-apt-repository ppa:neovim-ppa/stable -y
# sudo apt-get update
# sudo apt-get install neovim -y
- name: Get Plenary into the mix
run: |
git clone https://github.com/nvim-lua/plenary.nvim.git
mkdir -p .local/share/nvim/lazy/
mv plenary.nvim .local/share/nvim/lazy/
- name: Run Tests
run: make test

7 changes: 0 additions & 7 deletions tests/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy"
vim.notify = print
vim.opt.rtp:append(".")
vim.opt.rtp:append(lazypath .. "/plenary.nvim")
vim.opt.rtp:append(lazypath .. "/nui.nvim")
vim.opt.rtp:append(lazypath .. "/telescope.nvim")
-- vim.opt.rtp:append(lazypath .. "/nvim-nio")

-- -- Get all our normal plugins into the test env
-- local suite = os.getenv("SUITE")
-- vim.opt.rtp:append(suite .. "nvim")

vim.opt.swapfile = false

Expand Down

0 comments on commit aadf689

Please sign in to comment.