Fix #292: Add parser links to README.md

This commit is contained in:
Stephan Seitz 2020-08-15 18:12:37 +02:00 committed by Thomas Vigouroux
parent 5d97cc5e09
commit 7c9ffe9e19
4 changed files with 151 additions and 58 deletions

25
.github/workflows/update-readme.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Check README parser info
on: [push, pull_request]
jobs:
luacheck:
name: Check README parser info
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Prepare
run: |
sudo apt-get update
sudo add-apt-repository universe
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
- name: Compile parsers
run: ./nvim.appimage --headless -c "TSInstallSync all" -c "q"
- name: Check README
run: ./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q"