Skip to content

Commit c8c754c

Browse files
committed
fix(workflow): trying to fix workflow
1 parent 8ebbdbf commit c8c754c

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/default.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@ jobs:
1111
name: test
1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- uses: rhysd/action-setup-vim@v1
1717
with:
1818
neovim: true
1919
version: ${{ matrix.nvim-versions }}
2020

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
2526

26-
- name: Build
27-
run: make
2827

2928
- name: Commit
30-
uses: stefanzweifel/git-auto-commit-action@v4
29+
uses: stefanzweifel/git-auto-commit-action@v5
3130
with:
3231
commit_message: 'auto: generate lua files'
33-
file_pattern: lua
32+
file_pattern: '*.lua'

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
FENNEL_SCRIPT=scripts/fennel
21
TESTS_INIT=tests/minimal_init.lua
32
TESTS_DIR=tests/
43

@@ -9,17 +8,20 @@ test_files =$(wildcard tests/**/*.ts)
98
test_out_files = $(test_files:tests/%.ts=tests/%.lua)
109
test_out_init = $(test_init:tests/%.ts=tests/%.lua)
1110

12-
compile:
11+
install:
12+
npm ci
13+
14+
compile: install
1315
mkdir -p lua/forem-nvim
1416
npx tstl
1517
npx tstl -p plugin/tsconfig.json
1618
npx tstl -p tests/tsconfig.json
1719

18-
test:
20+
test: compile
1921
@nvim \
2022
--headless \
2123
--noplugin \
2224
-u ${TESTS_INIT} \
2325
-c "PlenaryBustedDirectory ${TESTS_DIR} { minimal_init = '${TESTS_INIT}' }"
2426

25-
.PHONY: test compile
27+
.PHONY: install test compile

0 commit comments

Comments
 (0)