chore(ci): install go bins via gopher.nvim itself

This commit is contained in:
Olexandr Smirnov 2025-08-27 22:26:11 +03:00
parent 3b9f740b8c
commit ca1d4fda88
No known key found for this signature in database
2 changed files with 9 additions and 9 deletions

View file

@ -53,12 +53,7 @@ jobs:
key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }}
- name: Install Go bins - name: Install Go bins
run: | run: task install-deps
# TODO: install with :GoInstallDeps
go install github.com/fatih/gomodifytags@latest
go install github.com/josharian/impl@latest
go install github.com/cweill/gotests/...@latest
go install github.com/koron/iferr@latest
- name: Run Tests - name: Run Tests
run: | run: |

View file

@ -1,17 +1,14 @@
version: "3" version: "3"
tasks: tasks:
lint: lint:
desc: run all linters
cmds: cmds:
- selene . - selene .
- stylua --check . - stylua --check .
format: format:
desc: run formatter
cmd: stylua . cmd: stylua .
test: test:
desc: run all tests
cmds: cmds:
- | - |
nvim --clean --headless \ nvim --clean --headless \
@ -27,3 +24,11 @@ tasks:
-u "./scripts/minimal_init.lua" \ -u "./scripts/minimal_init.lua" \
-c "luafile ./scripts/docgen.lua" \ -c "luafile ./scripts/docgen.lua" \
-c ":qa!" -c ":qa!"
install-deps:
desc: installs go bin (used in CI)
cmds:
- |
nvim --clean --headless \
-u "./scripts/minimal_init.lua" \
+GoInstallDepsSync +qa