Skip to content

Commit

Permalink
ci: Fix nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Jan 8, 2024
1 parent c60cf77 commit a5d712b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install xclip
run: sudo apt-get install xsel
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
id: neovim
Expand Down
12 changes: 12 additions & 0 deletions tests/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,15 @@ require('orgmode').setup({
org_agenda_files = { base_root_path .. '/plenary/fixtures/*' },
org_default_notes_file = base_root_path .. '/plenary/fixtures/refile.org',
})

vim.g.clipboard = {
name = 'xclip',
copy = {
['+'] = { 'xsel', '--nodetach', '-i', '-b' },
['*'] = { 'xsel', '--nodetach', '-i', '-p' },
},
paste = {
['+'] = { 'xsel', '-o', '-b' },
['*'] = { 'xsel', '-o', '-p' },
},
}
3 changes: 3 additions & 0 deletions tests/plenary/capture/templates_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ local Templates = require('orgmode.capture.templates')
describe('Capture template', function()
local templates = Templates:new()
it('should compile expression', function()
vim.print(vim.fn['provider#clipboard#Executable']())
vim.print(vim.fn['provider#clipboard#Executable']())
vim.print(vim.fn['provider#clipboard#Executable']())
---Backup and restore the clipboard
local clip_backup = vim.fn.getreg('+')
vim.fn.setreg('+', 'test')
Expand Down

0 comments on commit a5d712b

Please sign in to comment.