Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test fixes and run them as a GH action #330

Merged
merged 18 commits into from
Jul 27, 2024
Merged

Conversation

cameronr
Copy link
Collaborator

I somehow accidentally removed the whitespace for the Makefile step that installs plenary. It should auto install now. Let me know if it doesn't work for you!

Also, what do you think about running the tests on commit? I'm not sure how GH does it but I assume something like that would be possible?

cameronr and others added 6 commits July 16, 2024 07:54
also annotate a bug with Lib.current_session_name
…g an error

The basic bug was introduced in rmagatti#322 becase `table.concat` returns a
string so `content[1]` doesn't make sense. The bug that rmagatti#322 was fixing
was repeated in `session-lens/actions.lua` so it made sense to clean it
all up.
It was failing due to inconsistent path separator usage. I found out
that vim.fn.expand (Lib.expand) canonicalizes the path separator which
could be useful for standardizing paths / preventing edge cases.

Whether it picks \ or / depends on the shellslash setting.
@cameronr cameronr marked this pull request as draft July 17, 2024 03:12
@cameronr
Copy link
Collaborator Author

This ended up being a bit more involved than I thought it would. Fixing the referenced bugs was easy but I noticed places where the path separators were being inconsistently added which made it hard to follow why things were happening and would cause the alternate session to be effectively the same as the current one.

@cameronr cameronr marked this pull request as ready for review July 17, 2024 06:30
@cameronr
Copy link
Collaborator Author

I'm working on the GH action to automatically run the unit tests. I'll add that once I have it working

@rmagatti
Copy link
Owner

Yeah a GH action to run the tests on push to PRs would be ideal 👍 great work @cameronr 💪

@cameronr cameronr changed the title build: fix broken unit test dependency Unit test fixes and run them as a GH action Jul 18, 2024
@cameronr
Copy link
Collaborator Author

I think this group of changes is all set. It'll run the tests on push and on PRs and test against 0.7.2, 0.8.3, 0.9.5, 0.10.0, and nightly.

@rmagatti rmagatti merged commit d5553e7 into rmagatti:main Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants