chore(ci): install go bins via gopher.nvim itself
This commit is contained in:
parent
92b0ebb6a7
commit
8c87952964
2 changed files with 9 additions and 9 deletions
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
|
|
@ -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: |
|
||||||
|
|
|
||||||
11
Taskfile.yml
11
Taskfile.yml
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue