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