Skip to content

Commit c91a235

Browse files
committed
update actions
1 parent 524e7c0 commit c91a235

File tree

8 files changed

+54
-24
lines changed

8 files changed

+54
-24
lines changed

.github/workflows/.luarc-5.1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"$PWD/.dependencies/pack/vendor/start/nvim-web-devicons/lua",
1616
"$PWD/.dependencies/pack/vendor/start/image.nvim/lua",
1717
"$PWD/.dependencies/pack/vendor/start/snacks.nvim/lua",
18+
"$PWD/.dependencies/pack/vendor/start/nvim-window-picker/lua",
1819
"${3rd}/luassert/library",
1920
"${3rd}/busted/library"
2021
],

.github/workflows/.luarc-luajit-master.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"$PWD/.dependencies/pack/vendor/start/nvim-web-devicons/lua",
1616
"$PWD/.dependencies/pack/vendor/start/image.nvim/lua",
1717
"$PWD/.dependencies/pack/vendor/start/snacks.nvim/lua",
18+
"$PWD/.dependencies/pack/vendor/start/nvim-window-picker/lua",
1819
"${3rd}/luassert/library",
19-
"${3rd}/busted/library",
20-
"${3rd}/luv/library"
20+
"${3rd}/busted/library"
2121
],
2222
"ignoreDir": [
2323
".dependencies",

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ name: CI
22
on:
33
push:
44
branches:
5-
- main
6-
- v1.x
7-
- v2.x
8-
- v3.x
5+
- "*"
96
pull_request:
107
workflow_dispatch:
118

@@ -27,21 +24,23 @@ jobs:
2724
strategy:
2825
fail-fast: false
2926
matrix:
30-
rev: ["0.8", "0.9", "0.10", "0.11"]
27+
neovim: ["0.8", "0.9", "0.10", "0.11"]
3128
os: [ubuntu-22.04]
3229
include:
33-
- rev: "latest"
30+
- neovim: "latest"
3431
os: [windows-latest]
3532
steps:
3633
- uses: actions/checkout@v4
37-
- uses: jdx/mise-action@v2
34+
- name: "Install neovim and other deps"
35+
uses: jdx/mise-action@v2
3836
with:
3937
install: true # [default: true] run `mise install`
40-
install_args: "neovim@${{matrix.rev}}" # [default: ""] additional arguments to `mise install`
41-
- run: |
42-
mise use neovim@${{matrix.rev}}
43-
make setup
44-
make test
38+
install_args: "neovim@${{matrix.neovim}}" # [default: ""] additional arguments to `mise install`
39+
- name: "Run tests"
40+
run: |
41+
mise use neovim@${{matrix.neovim}}
42+
mise deps
43+
mise test
4544
4645
# - name: Upload coverage to Codecov
4746
# uses: codecov/codecov-action@v2
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lua Language Server Diagnostics
2+
on:
3+
pull_request: ~
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
luals-check:
10+
strategy:
11+
matrix:
12+
lua: ["5.1", "luajit-master"]
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- uses: luarocks/gh-actions-lua@v10
20+
with:
21+
luaVersion: ${{matrix.lua}}
22+
23+
- name: Install tools
24+
uses: jdx/mise-action@v2
25+
with:
26+
install_args: "neovim"
27+
28+
- name: Run lua-language-server check
29+
run: |
30+
mise use neovim
31+
NEOTREE_LUARC=".github/workflows/.luarc-${{ matrix.lua }}.json" mise run emmylua-check

.github/workflows/luals-check.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,3 @@ jobs:
3030
run: |
3131
mise use neovim
3232
NEOTREE_LUARC=".github/workflows/.luarc-${{ matrix.lua }}.json" mise run luals-check
33-
34-
- name: Run emmylua_check
35-
continue-on-error: true # Doesn't type-check well enough to be worth erroring on, but this runs so fast we might as well help test this out.
36-
run: |
37-
NEOTREE_LUARC=".github/workflows/.luarc-${{ matrix.lua }}.json" mise run emmylua-check

.luarc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"$PWD/.dependencies/pack/vendor/start/nvim-web-devicons/lua",
1616
"$PWD/.dependencies/pack/vendor/start/image.nvim/lua",
1717
"$PWD/.dependencies/pack/vendor/start/snacks.nvim/lua",
18+
"$PWD/.dependencies/pack/vendor/start/nvim-window-picker/lua",
1819
"${3rd}/luassert/library",
1920
"${3rd}/busted/library"
2021
],

mise.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1+
[env]
2+
NEOTREE_LUARC = ".luarc.json"
3+
14
[tools]
25
lua-language-server = "latest"
6+
cargo-binstall = "latest"
7+
"cargo:emmylua_ls" = "latest"
8+
"cargo:emmylua_check" = "latest"
39

410
[tasks.test]
511
run = """
612
#!/usr/bin/env bash
7-
nvim --headless --noplugin -u tests/mininit.lua -c "lua require('plenary.test_harness').test_directory('tests/neo-tree/', {minimal_init='tests/mininit.lua',sequential=true})"
13+
nvim --headless --noplugin -u tests/mininit.lua -c "lua require('plenary.test_harness').test_directory('tests/neo-tree/', {minimal_init='tests/mininit.lua'})"
814
"""
915

1016
[tasks.test-docker]
1117
run = [
1218
"docker build -t neo-tree .",
1319
"docker run --rm neo-tree mise test"
1420
]
15-
hide = true # hide this task from the list
1621

1722
[tasks.format]
1823
run = "stylua --glob '*.lua' --glob '!defaults.lua' ."
1924

2025
[vars]
2126
deps_dir = '.dependencies/pack/vendor/start'
2227

23-
[env]
24-
NEOTREE_LUARC = ".luarc.json"
25-
2628
[tasks.update-dependencies]
2729
alias = 'deps'
2830
run = """
@@ -62,6 +64,7 @@ update https://github.com/folke/snacks.nvim snacks.nvim
6264
update https://github.com/MunifTanjim/nui.nvim nui.nvim
6365
update https://github.com/nvim-tree/nvim-web-devicons nvim-web-devicons
6466
update https://github.com/nvim-lua/plenary.nvim plenary.nvim
67+
update https://github.com/s1n7ax/nvim-window-picker nvim-window-picker
6568
"""
6669

6770
[tasks.luals-check]

tests/.luarc.json

Whitespace-only changes.

0 commit comments

Comments
 (0)