forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 0
Add basic lua tests #7
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
72c7c9b
initial lua test skeleton
fidgetingbits dcaab6f
feat: test adding busted workflow
fidgetingbits 682c520
fix: only install busted on Linux
d113ab8
refactor: Address review feedback
fidgetingbits e54d40e
fix: change workflows to actually work
fidgetingbits b7a80c1
fix: Address review feedback
fidgetingbits 822966d
Merge remote-tracking branch 'saidelike/nvim-talon' into lua-tests
fidgetingbits 1bff727
fix: Address task.json feedback
fidgetingbits 4689557
docs: Add neovim lua test architecture section
fidgetingbits d1be1ea
refactor: switch to standalone neovim lua test action
fidgetingbits 13514bc
fix: Remove unneeded luaVersion entry for luarocks
fidgetingbits 3bef660
docs: review busted tests documentation
d08005b
refactor: print each test name as they run
fidgetingbits 2f0f693
refactor: rename task
5c99334
refactor: better output for lua tests
1be17b8
Merge branch 'nvim-talon' into lua-tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,12 +55,27 @@ jobs: | |
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
| env: | ||
| NEOVIM_PATH: ${{ steps.vim.outputs.executable }} | ||
| - uses: lunarmodules/[email protected] | ||
| - name: Set up Lua | ||
| uses: leafo/gh-actions-lua@v9 | ||
| with: | ||
| luaVersion: "luajit-2.1.0-beta3" | ||
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
| id: neovimLuaTests | ||
| - name: Run neovim lua unit tests | ||
| run: xvfb-run -a cd cursorless.nvim && busted --run unit | ||
| - name: Set up Luarocks | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| uses: leafo/gh-actions-luarocks@v4 | ||
| with: | ||
| luaVersion: "5.1" | ||
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Install Busted | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: | | ||
| luarocks install busted | ||
| luarocks install luafilesystem | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
| - name: Run cursorless.nvim busted lua tests | ||
| run: | | ||
| cd cursorless.nvim | ||
| busted --run unit | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
| id: neovimLuaTests | ||
fidgetingbits marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Create vscode dist that can be installed locally | ||
| run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install | ||
| if: runner.os == 'Linux' && matrix.app_version == 'stable' | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.