Skip to content

Commit fb08b3b

Browse files
committed
chore(#3271): CI install CodeFormat from luarocks
1 parent ad22603 commit fb08b3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
matrix:
5151
nvim_version: [ stable, nightly ]
5252
luals_version: [ 3.15.0 ]
53+
emmyluacodestyle_version: [ 1.5.7 ]
5354

5455
env:
5556
VIMRUNTIME: /home/runner/nvim-${{ matrix.nvim_version }}/share/nvim/runtime
@@ -71,6 +72,9 @@ jobs:
7172
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/${{ matrix.luals_version }}/lua-language-server-${{ matrix.luals_version }}-linux-x64.tar.gz" | tar zx --directory luals
7273
echo "luals/bin" >> "$GITHUB_PATH"
7374
75+
- name: install emmyluacodestyle ${{ matrix.emmyluacodestyle_version }}
76+
run: luarocks install emmyluacodestyle ${{ matrix.emmyluacodestyle_version }}
77+
7478
- run: make check
7579

7680
- run: make style

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ format-fix:
3232

3333
format-check:
3434
CodeFormat format --config .editorconfig --workspace lua
35-
git diff --exit-code lua
35+
git diff --exit-code lua || printf "\n\nPlease run: make format-fix\n"
3636

3737
#
3838
# utility

0 commit comments

Comments
 (0)