File tree 2 files changed +14
-13
lines changed
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -11,23 +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
21
+ - name : run tests
22
+ # When we run make test we are running install and compile too
23
+ run : make test
24
+ env :
25
+ PLENARY_DIR : vendor/plenary.nvim
25
26
26
- - name : Build
27
- run : make
28
27
29
28
- name : Commit
30
- uses : stefanzweifel/git-auto-commit-action@v4
29
+ uses : stefanzweifel/git-auto-commit-action@v5
31
30
with :
32
31
commit_message : ' auto: generate lua files'
33
- file_pattern : lua
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,17 +8,20 @@ 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
+ install :
12
+ npm ci
13
+
14
+ compile : install
13
15
mkdir -p lua/forem-nvim
14
16
npx tstl
15
17
npx tstl -p plugin/tsconfig.json
16
18
npx tstl -p tests/tsconfig.json
17
19
18
- test :
20
+ test : compile
19
21
@nvim \
20
22
--headless \
21
23
--noplugin \
22
24
-u ${TESTS_INIT} \
23
25
-c " PlenaryBustedDirectory ${TESTS_DIR} { minimal_init = '${TESTS_INIT} ' }"
24
26
25
- .PHONY : test compile
27
+ .PHONY : install test compile
You can’t perform that action at this time.
0 commit comments