From ca1d4fda887167dd50fe31cac0b4f54aae9af080 Mon Sep 17 00:00:00 2001 From: Olexandr Smirnov Date: Wed, 27 Aug 2025 22:26:11 +0300 Subject: [PATCH] chore(ci): install go bins via gopher.nvim itself --- .github/workflows/tests.yml | 7 +------ Taskfile.yml | 11 ++++++++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2512c7..7ce0603 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,12 +53,7 @@ jobs: key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} - name: Install Go bins - run: | - # 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 + run: task install-deps - name: Run Tests run: | diff --git a/Taskfile.yml b/Taskfile.yml index c14d352..226eed9 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,17 +1,14 @@ version: "3" tasks: lint: - desc: run all linters cmds: - selene . - stylua --check . format: - desc: run formatter cmd: stylua . test: - desc: run all tests cmds: - | nvim --clean --headless \ @@ -27,3 +24,11 @@ tasks: -u "./scripts/minimal_init.lua" \ -c "luafile ./scripts/docgen.lua" \ -c ":qa!" + + install-deps: + desc: installs go bin (used in CI) + cmds: + - | + nvim --clean --headless \ + -u "./scripts/minimal_init.lua" \ + +GoInstallDepsSync +qa