Update CI (#34) #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |