Skip to content

Update CI (#34)

Update CI (#34) #60

Workflow file for this run

name: CI
on: [push]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
nvim-versions: ["stable", "nightly"]
name: Tests
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.nvim-versions }}
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: make test
docs:
needs: tests
name: Generate vimdoc
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: wtf.nvim
demojify: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Auto generate vimdoc"
branch: ${{ github.head_ref }}