Skip to content

Commit

Permalink
build: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Jul 17, 2024
1 parent 93b0fdf commit 7abebc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ FILES := $(wildcard tests/*_spec.lua)
test: $(PLENARY_DIR) $(FILES) args-tests

$(FILES): $(PLENARY_DIR)
nvim --clean --headless -u tests/minimal.lua +"PlenaryBustedFile $@"
nvim --clean --headless -u tests/minimal.lua +"PlenaryBustedFile $@" || true
find .test


args-tests: $(PLENARY_DIR)
nvim --clean --headless -u tests/minimal.lua +"PlenaryBustedFile tests/args/args_setup_spec.lua"
Expand Down
3 changes: 3 additions & 0 deletions tests/git_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local TL = require "tests/test_lib"
describe("The git config", function()
require("auto-session").setup {
auto_session_use_git_branch = true,
log_level = "debug",
}

TL.clearSessionFilesAndBuffers()
Expand Down Expand Up @@ -39,6 +40,8 @@ describe("The git config", function()

local session_path = TL.session_dir .. TL.escapeSessionName(vim.fn.getcwd() .. "_main.vim")

print(session_path)

assert.equals(1, vim.fn.filereadable(session_path))
end)
end)

0 comments on commit 7abebc7

Please sign in to comment.