Skip to content

Commit

Permalink
ci: run tests on push
Browse files Browse the repository at this point in the history
Also, only generate vimdocs when on `main`
  • Loading branch information
mawkler committed Nov 11, 2023
1 parent 5aa5a41 commit 0f1b5d1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/modicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: panvimdoc
on: [push]
jobs:
docs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
name: pandoc to vimdoc
steps:
Expand All @@ -14,3 +15,21 @@ jobs:
with:
commit_message: "docs: auto generate vimdoc"
branch: ${{ github.head_ref }}
tests:
runs-on: ubuntu-latest
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: Run Tests
run: |
nvim --version
[ ! -d tests ] && exit 0
nvim --headless -c "PlenaryBustedDirectory tests/"

0 comments on commit 0f1b5d1

Please sign in to comment.