File tree 3 files changed +19
-9
lines changed
3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,22 @@ jobs:
11
11
name : test
12
12
steps :
13
13
- name : checkout
14
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v4
15
15
16
16
- uses : rhysd/action-setup-vim@v1
17
17
with :
18
18
neovim : true
19
19
version : ${{ matrix.nvim-versions }}
20
20
21
- - name : Lua action
22
- uses : mileschou/lua-action@master
23
- with :
24
- args : lua -v
25
-
26
21
- name : run tests
22
+ # When we run make test we are running install and compile too
27
23
run : make test
28
24
env :
29
25
PLENARY_DIR : vendor/plenary.nvim
26
+
27
+
28
+ - name : Commit
29
+ uses : stefanzweifel/git-auto-commit-action@v5
30
+ with :
31
+ commit_message : ' auto: generate lua files'
32
+ file_pattern : ' *.lua'
Original file line number Diff line number Diff line change 1
- FENNEL_SCRIPT =scripts/fennel
2
1
TESTS_INIT =tests/minimal_init.lua
3
2
TESTS_DIR =tests/
4
3
@@ -9,13 +8,17 @@ test_files =$(wildcard tests/**/*.ts)
9
8
test_out_files = $(test_files:tests/%.ts=tests/%.lua )
10
9
test_out_init = $(test_init:tests/%.ts=tests/%.lua )
11
10
12
- compile :
11
+
12
+ compile : node_modules
13
13
mkdir -p lua/forem-nvim
14
14
npx tstl
15
15
npx tstl -p plugin/tsconfig.json
16
16
npx tstl -p tests/tsconfig.json
17
17
18
- test :
18
+ node_modules : package.json
19
+ @test -d node_modules || npm clean-install
20
+
21
+ test : compile
19
22
@nvim \
20
23
--headless \
21
24
--noplugin \
Original file line number Diff line number Diff line change
1
+ # About
2
+ Contains transpiled output from [ src] ( ../src ) dir
3
+
4
+ DON'T make direct changes to lua files since they will be deleted by build runner.
You can’t perform that action at this time.
0 commit comments