* feat: support vim.g.oil declarative configuration
Problem: oil.nvim requires an imperative require("oil").setup(opts)
call to initialize. The Neovim ecosystem is moving toward vim.g.plugin
as a declarative config source that works without explicit setup calls.
Solution: fall back to vim.g.oil in config.setup() when no opts are
passed, and add plugin/oil.lua to auto-initialize when vim.g.oil is
set. Explicit setup(opts) calls still take precedence. Update docs
and add tests for the new resolution order.
Closes: barrettruth/oil.nvim#1
* build: remove release-please pipeline
Problem: the release-please action creates automated releases that
are not needed for this fork's workflow.
Solution: remove the release job from tests.yml and the
release-please branch exclusion from the review request workflow.
* fix(doc): improve readme phrasing
* doc: minor phrasing "improvements"
* ci: add luarocks release on tag push
Problem: there is no automated way to publish oil.nvim to luarocks
when a new version is tagged.
Solution: add a luarocks workflow that triggers on v* tag pushes,
runs the test suite via workflow_call, then publishes via
luarocks-tag-release. Add workflow_call trigger to tests.yml so it
can be reused.
72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
luacheck:
|
|
name: Luacheck
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Prepare
|
|
run: |
|
|
sudo apt-get update
|
|
sudo add-apt-repository universe
|
|
sudo apt install luarocks -y
|
|
sudo luarocks install luacheck
|
|
|
|
- name: Run Luacheck
|
|
run: luacheck lua tests
|
|
|
|
stylua:
|
|
name: StyLua
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Stylua
|
|
uses: JohnnyMorganz/stylua-action@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: v2.0.2
|
|
args: --check lua tests
|
|
|
|
typecheck:
|
|
name: typecheck
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: stevearc/nvim-typecheck-action@v2
|
|
with:
|
|
path: lua
|
|
|
|
run_tests:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- nvim_tag: v0.8.3
|
|
- nvim_tag: v0.9.4
|
|
- nvim_tag: v0.10.4
|
|
- nvim_tag: v0.11.0
|
|
|
|
name: Run tests
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
NVIM_TAG: ${{ matrix.nvim_tag }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Neovim and dependencies
|
|
run: |
|
|
bash ./.github/workflows/install_nvim.sh
|
|
|
|
- name: Run tests
|
|
run: |
|
|
bash ./run_tests.sh
|