Skip to content

Commit

Permalink
Add make target / github workflow to ensure there are no errant util.R's
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronik committed Dec 29, 2024
1 parent 8b94946 commit b1e0516
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ jobs:
XDG_STATE_HOME: ${{ github.workspace }}/.local/state
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
run: make test

- name: Ensure No util.R in code
env:
XDG_CONFIG_HOME: ${{ github.workspace }}/.config
XDG_DATA_HOME: ${{ github.workspace }}/.local/share
XDG_STATE_HOME: ${{ github.workspace }}/.local/state
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
run: make ensure-no-util-r
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ test:

test-watch:
nodemon -e lua -x "$(MAKE) test || exit 1"

ensure-no-util-r:
! grep --exclude-dir=.git -r 'util.R' | grep -v '\-\-'
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO

* Check for errant util.log or util.R usages in CI/local
* Get more languages into movement/highlight/swap specs
* :help treesitter-parsers
6 changes: 3 additions & 3 deletions plugin/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local function tw()
-- local util = require "treewalker.util"
-- return util.R('treewalker')
return require('treewalker')
local util = require "treewalker.util"
return util.R('treewalker')
-- return require('treewalker')
end

local subcommands = {
Expand Down

0 comments on commit b1e0516

Please sign in to comment.