chore(github): ci workflow #2
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Neovim | |
| uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| - name: Setup mise | |
| uses: jdx/mise-action@v2 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Run lint task | |
| run: mise run lint | |
| check-doc: | |
| name: Docs up-to-date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Neovim | |
| uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: stable | |
| - name: Setup mise | |
| uses: jdx/mise-action@v2 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Regenerate docs | |
| run: mise run doc | |
| - name: Ensure doc/ is clean | |
| run: | | |
| if [ -n "$(git status --porcelain -- doc)" ]; then | |
| git status --short -- doc | |
| echo "error: doc/ is out of date" | |
| exit 1 | |
| fi |