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 63ed0e4
Show file tree
Hide file tree
Showing 3 changed files with 25 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 xclip
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
id: neovim
Expand Down
20 changes: 20 additions & 0 deletions tests/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ vim.cmd.language('en_US.utf-8')
vim.env.TZ = 'Europe/London'
vim.g.mapleader = ','

-- local clipboard = vim.fn['provider#clipboard#Executable']()
-- if clipboard == '' then
-- vim.g.clipboard = {
-- name = 'xclip',
-- copy = {
-- ['+'] = { 'xclip', '-quiet', '-i', '-selection', 'clipboard' },
-- ['*'] = { 'xclip', '-quiet', '-i', '-selection', 'primary' },
-- },
-- paste = {
-- ['+'] = { 'xclip', '-o', '-selection', 'clipboard' },
-- ['*'] = { 'xclip', '-o', '-selection', 'primary' },
-- },
-- }
-- end

require('orgmode').setup_ts_grammar()
require('nvim-treesitter.configs').setup({
ensure_installed = { 'org' },
Expand All @@ -110,3 +125,8 @@ require('orgmode').setup({
org_agenda_files = { base_root_path .. '/plenary/fixtures/*' },
org_default_notes_file = base_root_path .. '/plenary/fixtures/refile.org',
})

print('loading minimal init')
print('loading minimal init')
print('loading minimal init')
print('loading minimal init')
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 63ed0e4

Please sign in to comment.