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 e39073b
Show file tree
Hide file tree
Showing 2 changed files with 30 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
28 changes: 28 additions & 0 deletions tests/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,31 @@ require('orgmode').setup({
org_agenda_files = { base_root_path .. '/plenary/fixtures/*' },
org_default_notes_file = base_root_path .. '/plenary/fixtures/refile.org',
})


vim.opt.clipboard:append('unnamedplus')
-- NOTE: This is a workaround to get the clipboard working in the CI environment
-- where the clipboard provider does not exist.
-- local clipboard = vim.fn['provider#clipboard#Executable']()
-- if clipboard == '' then
-- vim.g.org_custom_clipboard = {}
-- vim.g.clipboard = {
-- name = 'org_custom_clipboard',
-- copy = {
-- ['+'] = function(lines, regtype)
-- vim.g.org_custom_clipboard = { lines, regtype }
-- end,
-- ['*'] = function(lines, regtype)
-- vim.g.org_custom_clipboard = { lines, regtype }
-- end,
-- },
-- paste = {
-- ['+'] = function()
-- return vim.g.org_custom_clipboard or {}
-- end,
-- ['*'] = function()
-- return vim.g.org_custom_clipboard or {}
-- end,
-- },
-- }
-- end

0 comments on commit e39073b

Please sign in to comment.