Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
jobs:
luacheck:
name: Luacheck
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Prepare
run: |
Expand All @@ -22,15 +22,20 @@ jobs:
run: sudo make lint
test:
name: X64-ubuntu
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: |
yarn global add quicktype
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Install Neovim
run: |
sudo add-apt-repository ppa:neovim-ppa/unstable -y
sudo apt-get update
sudo apt-get install -y neovim
- name: Provision
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim.git ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
Expand All @@ -39,7 +44,5 @@ jobs:
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run Tests
run: |
curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh
source github-actions-setup.sh nightly-x64
make test
make vader
17 changes: 13 additions & 4 deletions lua/go/lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,19 @@ end

function M.golangci_lint()
if util.binary_exists('golangci-lint') then
local status = vim.system({'golangci-lint', 'version', '--short'}):wait()
if status.code ~= 0 or
(string.sub(status.stdout,1,2) ~= "v2" and string.sub(status.stdout,1,1) ~= "2") then
output.show_warning('GoLint', 'Incompatible golangci-lint version. Try running \'GoUpdateBinaries\'.')
local status = vim.system({ 'golangci-lint', 'version', '--short' })
:wait()
if
status.code ~= 0
or (
string.sub(status.stdout, 1, 2) ~= 'v2'
and string.sub(status.stdout, 1, 1) ~= '2'
)
then
output.show_warning(
'GoLint',
"Incompatible golangci-lint version. Try running 'GoUpdateBinaries'."
)
return
end
end
Expand Down
Loading