Skip to content

Commit c83f971

Browse files
committed
chore: use luals for style check
1 parent 93475cd commit c83f971

File tree

1 file changed

+9
-39
lines changed

1 file changed

+9
-39
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -34,39 +34,6 @@ jobs:
3434

3535
- run: make lint
3636

37-
style:
38-
runs-on: ubuntu-latest
39-
env:
40-
VIMRUNTIME: /home/runner/nvim-${{ matrix.nvim_version }}/share/nvim/runtime
41-
42-
concurrency:
43-
group: ${{ github.workflow }}-${{ matrix.emmy_lua_code_style_version }}-${{ github.head_ref || github.ref_name }}
44-
cancel-in-progress: true
45-
46-
strategy:
47-
matrix:
48-
luals_version: [ 3.13.9 ]
49-
nvim_version: [ stable ]
50-
51-
steps:
52-
- uses: actions/checkout@v4
53-
54-
- uses: rhysd/action-setup-vim@v1
55-
with:
56-
neovim: true
57-
version: ${{ matrix.nvim_version }}
58-
59-
- name: install luals
60-
run: |
61-
mkdir -p luals
62-
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
63-
echo "luals/bin" >> "$GITHUB_PATH"
64-
65-
- name: make style
66-
run: make style
67-
68-
- run: make style-doc
69-
7037
check:
7138
runs-on: ubuntu-latest
7239

@@ -79,6 +46,9 @@ jobs:
7946
nvim_version: [ stable, nightly ]
8047
luals_version: [ 3.13.9 ]
8148

49+
env:
50+
VIMRUNTIME: /home/runner/nvim-${{ matrix.nvim_version }}/share/nvim/runtime
51+
8252
steps:
8353
- uses: actions/checkout@v4
8454

@@ -91,12 +61,12 @@ jobs:
9161
run: |
9262
mkdir -p luals
9363
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
64+
echo "luals/bin" >> "$GITHUB_PATH"
9465
95-
- run: echo "luals/bin" >> "$GITHUB_PATH"
96-
97-
- name: make check
98-
env:
99-
VIMRUNTIME: /home/runner/nvim-${{ matrix.nvim_version }}/share/nvim/runtime
100-
run: make check
66+
- run: make check
10167

10268
- run: make help-check
69+
70+
- run: make style
71+
72+
- run: make style-doc

0 commit comments

Comments
 (0)