Skip to content

Commit

Permalink
ci: autogen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 27, 2024
1 parent a9cb143 commit 231c0a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -29,9 +29,21 @@ jobs:
docs:
runs-on: ubuntu-latest
needs: tests
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Generate docs
run: |
nvim --version
nvim --headless -u tests/init.lua -l "lua/trouble/docs.lua"
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
Expand Down
1 change: 1 addition & 0 deletions tests/init.lua
Expand Up @@ -35,6 +35,7 @@ function M.setup()
}
vim.opt.packpath = { M.root(".tests/site") }
M.load("nvim-lua/plenary.nvim")
M.load("folke/lazy.nvim")
end

M.setup()

0 comments on commit 231c0a8

Please sign in to comment.