ci: use vim-colortemplate tarball rather than git clone (#347)

* ci: add vim-colortemplate to .gitignore

* ci: download vim-colortemplate rather than clone
This commit is contained in:
Alexander Courtis 2023-11-27 13:25:41 +11:00 committed by GitHub
parent e034579da4
commit 5efb8bd068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
.lua
.luarocks
vim-colortemplate
/vim-colortemplate/

View file

@ -1,3 +1,5 @@
VIM_COLORTEMPLATE_VERSION = 2.2.3
all: colors style-check lint
colors: vim-colortemplate
@ -12,7 +14,8 @@ colors-check: colors
git diff --exit-code lua/nvim-web-devicons/icons-light.lua
vim-colortemplate:
git clone --depth 1 https://github.com/lifepillar/vim-colortemplate.git vim-colortemplate
mkdir -p vim-colortemplate
curl -L https://github.com/lifepillar/vim-colortemplate/archive/refs/tags/v$(VIM_COLORTEMPLATE_VERSION).tar.gz | tar zx --directory vim-colortemplate --strip-components=1
style-check:
stylua . --check
@ -23,4 +26,7 @@ style-fix:
lint:
luacheck lua scripts
clean:
rm -rf vim-colortemplate
.PHONY: all colors style-check style-fix lint