Skip to content

Commit b9e3b46

Browse files
phanenibhagwan
authored andcommitted
ci: lint
1 parent 9a00937 commit b9e3b46

5 files changed

Lines changed: 67 additions & 36 deletions

.github/workflows/lint.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: [push, pull_request]
2+
name: Lint
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: checkout
9+
uses: actions/checkout@v4
10+
11+
- name: install neovim
12+
uses: rhysd/action-setup-vim@v1
13+
with:
14+
neovim: true
15+
version: v0.11.2
16+
17+
- name: install lua-language-server
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
cd
22+
gh release download -R sumneko/lua-language-server -p '*-linux-x64.tar.gz' -D lua-language-server
23+
tar xzf lua-language-server/* -C lua-language-server
24+
echo "${PWD}/lua-language-server/bin" >> $GITHUB_PATH
25+
export PATH="${PWD}/lua-language-server/bin:${PATH}"
26+
lua-language-server --version
27+
28+
- name: lint
29+
run: |
30+
make deps
31+
make lint

tests/screenshots/tests-file-ui_spec.lua---files---executable---1-+-args-{-'fd'-}

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
01|
33
02|~
44
03|~ ╭─────────────────── Files h ────────────────────╮
5-
04|~ │> 135/135 (0) │
5+
04|~ │> 136/136 (0) │
66
05|~ │──────────────────────────────────────────────── │
77
06|~ │▌ [DEBUG] [mt] fd --hidden --color=never --typ··││
88
07|~ │ .editorconfig │
99
08|~ │ .github/ISSUE_TEMPLATE/bug.yaml │
1010
09|~ │ .github/ISSUE_TEMPLATE/config.yml │
1111
10|~ │ .github/ISSUE_TEMPLATE/feature.yaml │
1212
11|~ │ .github/workflows/ci.yaml │
13-
12|~ │ .github/workflows/luarocks-release.yaml │
14-
13|~ │ .github/workflows/sync_remote.yaml
15-
14|~ │ .github/workflows/vimdoc.yaml
16-
15|~ │ .gitignore
17-
16|~ │ .luarc.jsonc
18-
17|~ │ .stylua.toml
19-
18|~ │ LICENSE
20-
19|~ │ Makefile
21-
20|~ │ OPTIONS.md
22-
21|~ │ README-Win.md │
13+
12|~ │ .github/workflows/lint.yaml
14+
13|~ │ .github/workflows/luarocks-release.yaml │
15+
14|~ │ .github/workflows/sync_remote.yaml │
16+
15|~ │ .github/workflows/vimdoc.yaml
17+
16|~ │ .gitignore
18+
17|~ │ .luarc.jsonc
19+
18|~ │ .stylua.toml
20+
19|~ │ LICENSE
21+
20|~ │ Makefile
22+
21|~ │ OPTIONS.md
2323
22|~ ╰─────────────────────────────────────────────────╯
2424
23|~
2525
24|[No Name] 0,0-1 All

tests/screenshots/tests-file-ui_spec.lua---files---executable---1-+-args-{-'find-dir'-}

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
01|
33
02|~
44
03|~ ╭───────────────────── Files ─────────────────────╮
5-
04|~ │> 135/135 (0) │
5+
04|~ │> 136/136 (0) │
66
05|~ │──────────────────────────────────────────────── │
77
06|~ │▌ [DEBUG] [mt] find . -type f \! -path '*/.git··││
88
07|~ │ .editorconfig │
99
08|~ │ .github/ISSUE_TEMPLATE/bug.yaml │
1010
09|~ │ .github/ISSUE_TEMPLATE/config.yml │
1111
10|~ │ .github/ISSUE_TEMPLATE/feature.yaml │
1212
11|~ │ .github/workflows/ci.yaml │
13-
12|~ │ .github/workflows/luarocks-release.yaml │
14-
13|~ │ .github/workflows/sync_remote.yaml
15-
14|~ │ .github/workflows/vimdoc.yaml
16-
15|~ │ .gitignore
17-
16|~ │ .luarc.jsonc
18-
17|~ │ .stylua.toml
19-
18|~ │ LICENSE
20-
19|~ │ Makefile
21-
20|~ │ OPTIONS.md
22-
21|~ │ README-Win.md │
13+
12|~ │ .github/workflows/lint.yaml
14+
13|~ │ .github/workflows/luarocks-release.yaml │
15+
14|~ │ .github/workflows/sync_remote.yaml │
16+
15|~ │ .github/workflows/vimdoc.yaml
17+
16|~ │ .gitignore
18+
17|~ │ .luarc.jsonc
19+
18|~ │ .stylua.toml
20+
19|~ │ LICENSE
21+
20|~ │ Makefile
22+
21|~ │ OPTIONS.md
2323
22|~ ╰─────────────────────────────────────────────────╯
2424
23|~
2525
24|[No Name] 0,0-1 All

tests/screenshots/tests-file-ui_spec.lua---files---executable---1-+-args-{-'rg'-}

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
01|
33
02|~
44
03|~ ╭─────────────────── Files h ────────────────────╮
5-
04|~ │> 135/135 (0) │
5+
04|~ │> 136/136 (0) │
66
05|~ │──────────────────────────────────────────────── │
77
06|~ │▌ [DEBUG] [mt] rg --hidden --files -g "!.git" ··││
88
07|~ │ .editorconfig │
99
08|~ │ .github/ISSUE_TEMPLATE/bug.yaml │
1010
09|~ │ .github/ISSUE_TEMPLATE/config.yml │
1111
10|~ │ .github/ISSUE_TEMPLATE/feature.yaml │
1212
11|~ │ .github/workflows/ci.yaml │
13-
12|~ │ .github/workflows/luarocks-release.yaml │
14-
13|~ │ .github/workflows/sync_remote.yaml
15-
14|~ │ .github/workflows/vimdoc.yaml
16-
15|~ │ .gitignore
17-
16|~ │ .luarc.jsonc
18-
17|~ │ .stylua.toml
19-
18|~ │ LICENSE
20-
19|~ │ Makefile
21-
20|~ │ OPTIONS.md
22-
21|~ │ README-Win.md │
13+
12|~ │ .github/workflows/lint.yaml
14+
13|~ │ .github/workflows/luarocks-release.yaml │
15+
14|~ │ .github/workflows/sync_remote.yaml │
16+
15|~ │ .github/workflows/vimdoc.yaml
17+
16|~ │ .gitignore
18+
17|~ │ .luarc.jsonc
19+
18|~ │ .stylua.toml
20+
19|~ │ LICENSE
21+
20|~ │ Makefile
22+
21|~ │ OPTIONS.md
2323
22|~ ╰─────────────────────────────────────────────────╯
2424
23|~
2525
24|[No Name] 0,0-1 All

tests/screenshots/tests-file-ui_spec.lua---files---preview-should-work-after-chdir-#1864

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
01|
33
02|~
44
03|~ ╭─────────────────── Files h ────────────────────╮
5-
04|~ │> 134/134 (0) │
5+
04|~ │> 135/135 (0) │
66
05|~ │──────────────────────────────────────────────── │
77
06|~ │ .editorconfig ││
88
07|~ │▌ .github/ISSUE_TEMPLATE/bug.yaml │
99
08|~ │ .github/ISSUE_TEMPLATE/config.yml │
1010
09|~ │ .github/ISSUE_TEMPLATE/feature.yaml │
1111
10|~ │ .github/workflows/ci.yaml │
12-
11|~ │ .github/workflows/luarocks-release.yaml │
13-
12|~ │ .github/workflows/sync_remote.yaml
12+
11|~ │ .github/workflows/lint.yaml
13+
12|~ │ .github/workflows/luarocks-release.yaml │
1414
13|~ ╰─────────────────────────────────────────────────╯
1515
14|~ ╭─────────────────── bug.yaml ────────────────────╮
1616
15|~ │ 1 name: 🐞 Bug Report

0 commit comments

Comments
 (0)