Skip to content

fix: corrected vim.validate, documentation and improved StyLua #32

fix: corrected vim.validate, documentation and improved StyLua

fix: corrected vim.validate, documentation and improved StyLua #32

Workflow file for this run

---
name: CI
on:
pull_request: ~
push:
branches:
- main
jobs:
stylua:
name: Check code style
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --config-path=.stylua.toml ./lua ./tests ./plugin
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style(format): fix code style"
branch: ${{ github.head_ref }}
selene:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: NTBBloodbath/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --color always ./lua ./tests ./plugin
tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
# neovim_version: ["nightly"]
neovim_version: ["v0.10.1"]
steps:
- uses: actions/checkout@v4
- name: Prepare plenary
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s "$(pwd)" ~/.local/share/nvim/site/pack/vendor/start
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
- name: Run tests
run: |
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"