2022-11-29 14:40:13 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Neovim
|
|
|
|
run: |
|
|
|
|
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb
|
|
|
|
sudo dpkg -i /tmp/nvim.deb
|
|
|
|
- name: Run Tests
|
|
|
|
run: |
|
|
|
|
nvim --version
|
|
|
|
./tests/run
|
|
|
|
docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: tests
|
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: panvimdoc
|
|
|
|
uses: kdheepak/panvimdoc@main
|
|
|
|
with:
|
|
|
|
vimdoc: lazy.nvim
|
|
|
|
demojify: true
|
2022-12-15 08:06:36 +00:00
|
|
|
- name: Code Blocks
|
|
|
|
run: sed -i 's/^>$/>lua/' doc/lazy.nvim.txt
|
2022-11-29 14:40:13 +00:00
|
|
|
- name: Push changes
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
|
|
|
commit_message: "chore(build): auto-generate vimdoc"
|
|
|
|
commit_user_name: "github-actions[bot]"
|
|
|
|
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
|
|
|
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
|
|
|
release:
|
|
|
|
name: release
|
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
needs:
|
|
|
|
- docs
|
|
|
|
- tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: google-github-actions/release-please-action@v3
|
|
|
|
with:
|
2022-11-29 14:48:27 +00:00
|
|
|
release-type: simple
|
2022-11-29 14:55:46 +00:00
|
|
|
package-name: lazy.nvim
|