Skip to content

Commit a5d712b

Browse files
ci: Fix nightly tests
1 parent c60cf77 commit a5d712b

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v4
36+
- name: Install xclip
37+
run: sudo apt-get install xsel
3638
- name: Install Neovim
3739
uses: rhysd/action-setup-vim@v1
3840
id: neovim

tests/minimal_init.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,15 @@ require('orgmode').setup({
110110
org_agenda_files = { base_root_path .. '/plenary/fixtures/*' },
111111
org_default_notes_file = base_root_path .. '/plenary/fixtures/refile.org',
112112
})
113+
114+
vim.g.clipboard = {
115+
name = 'xclip',
116+
copy = {
117+
['+'] = { 'xsel', '--nodetach', '-i', '-b' },
118+
['*'] = { 'xsel', '--nodetach', '-i', '-p' },
119+
},
120+
paste = {
121+
['+'] = { 'xsel', '-o', '-b' },
122+
['*'] = { 'xsel', '-o', '-p' },
123+
},
124+
}

tests/plenary/capture/templates_spec.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ local Templates = require('orgmode.capture.templates')
33
describe('Capture template', function()
44
local templates = Templates:new()
55
it('should compile expression', function()
6+
vim.print(vim.fn['provider#clipboard#Executable']())
7+
vim.print(vim.fn['provider#clipboard#Executable']())
8+
vim.print(vim.fn['provider#clipboard#Executable']())
69
---Backup and restore the clipboard
710
local clip_backup = vim.fn.getreg('+')
811
vim.fn.setreg('+', 'test')

0 commit comments

Comments
 (0)