File tree 3 files changed +18
-12
lines changed
3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 10
10
luacheck :
11
11
name : Check Query Files
12
12
runs-on : ubuntu-latest
13
+ env :
14
+ NVIM_TAG : stable
15
+ APPIMAGE : nvim-linux-x86_64.appimage
13
16
steps :
14
17
- uses : actions/checkout@v3
15
18
- uses : actions/setup-node@v3
@@ -20,19 +23,20 @@ jobs:
20
23
- name : Prepare
21
24
env :
22
25
NVIM_TAG : stable
26
+ APPIMAGE : nvim-linux-x86_64.appimage
23
27
run : |
24
28
sudo apt-get update && sudo apt-get install libfuse2
25
29
sudo add-apt-repository universe
26
- wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
27
- chmod u+x nvim.appimage
30
+ wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/${APPIMAGE}
31
+ chmod u+x ${APPIMAGE}
28
32
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
29
33
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
30
34
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
31
35
cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
32
36
git clone https://github.com/nvim-treesitter/nvim-treesitter.git
33
37
34
38
- name : Compile parsers
35
- run : ./nvim.appimage --headless -c "TSInstallSync all" -c "q"
39
+ run : ./${APPIMAGE} --headless -c "TSInstallSync all" -c "q"
36
40
37
41
- name : Check query files
38
- run : ./nvim.appimage --headless -c "luafile ./scripts/check-queries.lua" -c "q"
42
+ run : ./${APPIMAGE} --headless -c "luafile ./scripts/check-queries.lua" -c "q"
Original file line number Diff line number Diff line change 9
9
update-readme :
10
10
name : Update README.md
11
11
runs-on : ubuntu-latest
12
+ env :
13
+ APPIMAGE : nvim-linux-x86_64.appimage
12
14
steps :
13
15
- uses : actions/checkout@v3
14
16
- uses : actions/setup-node@v3
@@ -20,23 +22,23 @@ jobs:
20
22
run : |
21
23
sudo apt-get update && sudo apt-get install libfuse2
22
24
sudo add-apt-repository universe
23
- wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
24
- chmod u+x nvim.appimage
25
+ wget https://github.com/neovim/neovim/releases/download/nightly/${APPIMAGE}
26
+ chmod u+x ${APPIMAGE}
25
27
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
26
28
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter-textobject/start
27
29
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
28
30
cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
29
31
git clone https://github.com/nvim-treesitter/nvim-treesitter.git
30
32
31
33
- name : Compile parsers
32
- run : ./nvim.appimage --headless -c "TSInstallSync all" -c "q"
34
+ run : ./${APPIMAGE} --headless -c "TSInstallSync all" -c "q"
33
35
34
36
# inspired by nvim-lspconfigs
35
37
- name : Check README
36
38
run : |
37
39
git config user.email "actions@github"
38
40
git config user.name "Github Actions"
39
- ./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
41
+ ./${APPIMAGE} --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
40
42
git add README.md
41
43
git commit -m "docs: update queries in README" || echo 'No commit necessary!'
42
44
git clean -xf
Original file line number Diff line number Diff line change 1
- wget " https://github.com/neovim/neovim/releases/download/${NVIM_TAG} /nvim-linux64 .tar.gz"
2
- tar -zxf nvim-linux64 .tar.gz
3
- sudo ln -s " $( pwd) /nvim-linux64 /bin/nvim" /usr/local/bin
4
- rm -rf " $( pwd) /nvim-linux64 /lib/nvim/parser"
1
+ wget " https://github.com/neovim/neovim/releases/download/${NVIM_TAG} /nvim-linux-x86_64 .tar.gz"
2
+ tar -zxf nvim-linux-x86_64 .tar.gz
3
+ sudo ln -s " $( pwd) /nvim-linux-x86_64 /bin/nvim" /usr/local/bin
4
+ rm -rf " $( pwd) /nvim-linux-x86_64 /lib/nvim/parser"
5
5
mkdir -p ~ /.local/share/nvim/site/pack/ci/opt
6
6
ln -s " $( pwd) " ~ /.local/share/nvim/site/pack/ci/opt
You can’t perform that action at this time.
0 commit comments