Skip to content

feat(ci): setup ci workflow and supporting configs #3

feat(ci): setup ci workflow and supporting configs

feat(ci): setup ci workflow and supporting configs #3

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- main
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --color always --check .
selene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Selene
run: cargo install selene
- name: Run Selene
run: selene --display-style quiet --config ./.selene.toml lua
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install codespell
run: pip install codespell
- name: Use codespell
run: make spell
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: telescope-resession
version: "Neovim >= 0.9.0"
titledatepattern: "%Y"
demojify: true
treesitter: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: auto-generate vimdoc"
release:
runs-on: ubuntu-latest
needs: [stylua, selene, codespell, generate-doc]
if: github.ref == 'refs/heads/main'
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple