Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
51c1d50
feat(linter): add zsh syntax checker
barrettruth Feb 4, 2026
254ddbd
fix(ci): add luarocks bin to PATH
barrettruth Feb 4, 2026
bbaccbb
fix: revert ci change
barrettruth Feb 4, 2026
4171703
feat(linter): add cpplint C++ linter
barrettruth Feb 4, 2026
2634e6f
Merge branch 'feat/zsh-linter'
barrettruth Feb 4, 2026
bd57f3a
Merge branch 'feat/cpplint-linter'
barrettruth Feb 4, 2026
5e0f479
feat(linter): add cpplint C++ linter
barrettruth Feb 4, 2026
3ee84b4
Merge branch 'feat/cpplint-linter'
barrettruth Feb 4, 2026
c91f1b2
ci: rewrite workflow with parallel jobs and modern actions
barrettruth Feb 4, 2026
0ede9be
test: update expectations for guard.nvim diagnostic format changes
barrettruth Feb 4, 2026
f9ee288
refactor(test): reorganize tests by package manager
barrettruth Feb 4, 2026
274c578
fix(test): update checkmake expected output for new phonydeclared rule
barrettruth Feb 4, 2026
1fd187c
fix(ci): run clang tests separately to avoid state pollution
barrettruth Feb 4, 2026
d045892
fix(test): revert checkmake linter, fix test order
barrettruth Feb 4, 2026
6154f8a
fix(test): restore swiftformat test with proper naming
barrettruth Feb 4, 2026
dbeae42
fix(ci): rename swiftformat binary after extraction
barrettruth Feb 4, 2026
f4faba1
fix(test): restore buf linter test and fix formatter expectation
barrettruth Feb 4, 2026
51d94b1
fix(buf): use fn approach for linter, fname for formatter
barrettruth Feb 4, 2026
73da25d
Revert "fix(buf): use fn approach for linter, fname for formatter"
barrettruth Feb 4, 2026
3b5c3af
fix(buf): simpler test input, formatter uses fname not stdin
barrettruth Feb 4, 2026
d5203af
Revert "fix(buf): simpler test input, formatter uses fname not stdin"
barrettruth Feb 4, 2026
823cd44
fix(ci): remove buf tests (fix in separate PR)
barrettruth Feb 4, 2026
a63a8e0
Merge branch 'fix/ci'
barrettruth Feb 4, 2026
be53149
fix: move cpplint to pip, zsh to binary
barrettruth Feb 4, 2026
84750dc
refactor(test)!: replace async test infra with synchronous execution
barrettruth Feb 6, 2026
70fd853
test: add remaining formatter and linter tests
barrettruth Feb 6, 2026
1772e4b
fix(ci): install zsh in test-binary job
barrettruth Feb 6, 2026
0d42532
feat(ci): add test coverage check
barrettruth Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
262 changes: 262 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check test coverage
run: ./scripts/check-coverage

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 2.0.2
args: --check .

test-pip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
pip install -q autopep8 black cmake-format cpplint docformatter flake8 ruff sqlfluff yapf
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/pip/*_spec.lua

test-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
npm install -g prettier @biomejs/biome sql-formatter @taplo/cli
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/npm/*_spec.lua

test-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
go install mvdan.cc/gofumpt@latest
go install github.com/segmentio/golines@latest
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export PATH="$HOME/go/bin:$PATH"
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/go/*_spec.lua

test-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install test tools
run: |
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/rust/*_spec.lua

test-lua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
luarocks install busted --local
luarocks install nlua --local
luarocks install luacheck --local
mkdir -p $HOME/.local/bin
wget -q https://github.com/Kampfkarren/selene/releases/download/0.28.0/selene-0.28.0-linux.zip
unzip -q selene-0.28.0-linux.zip -d $HOME/.local/bin
chmod +x $HOME/.local/bin/selene
wget -q https://github.com/JohnnyMorganz/StyLua/releases/download/v2.0.2/stylua-linux-x86_64.zip
unzip -q stylua-linux-x86_64.zip -d $HOME/.local/bin
chmod +x $HOME/.local/bin/stylua
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export PATH="$HOME/.local/bin:$PATH"
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/lua/*_spec.lua

test-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
sudo apt-get install -y zsh
luarocks install busted --local
luarocks install nlua --local
mkdir -p $HOME/.local/bin
cd $HOME/.local/bin
wget -q https://github.com/kamadorueda/alejandra/releases/download/4.0.0/alejandra-x86_64-unknown-linux-musl -O alejandra && chmod +x alejandra
wget -q https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -O buf && chmod +x buf
wget -q https://github.com/mrtazz/checkmake/releases/download/0.2.2/checkmake-0.2.2.linux.amd64 -O checkmake && chmod +x checkmake
wget -q https://github.com/denoland/deno/releases/download/v2.1.4/deno-x86_64-unknown-linux-gnu.zip && unzip -q deno-x86_64-unknown-linux-gnu.zip && chmod +x deno
wget -q https://github.com/cmhughes/latexindent.pl/releases/download/V3.24.4/latexindent-linux -O latexindent && chmod +x latexindent
wget -q https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.3/swiftformat_linux.zip && unzip -q swiftformat_linux.zip && mv swiftformat_linux swiftformat && chmod +x swiftformat
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export PATH="$HOME/.local/bin:$PATH"
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/binary/*_spec.lua

test-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
sudo apt-get install -y clang-format clang-tidy
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
for f in test/clang/*_spec.lua; do busted --lua nlua "$f"; done

test-haskell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.8'
cabal-version: latest
- uses: actions/cache@v4
with:
path: ~/.cabal
key: cabal-${{ runner.os }}-9.8-hlint
restore-keys: cabal-${{ runner.os }}-9.8-
- uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- uses: hishamhm/gh-actions-luarocks@master
- name: Install tools
run: |
cabal update
cabal install hlint --overwrite-policy=always
luarocks install busted --local
luarocks install nlua --local
- name: Clone guard.nvim
run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/
- name: Run tests
run: |
export PATH="$HOME/.cabal/bin:$PATH"
export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH"
busted --lua nlua test/haskell/*_spec.lua
75 changes: 0 additions & 75 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLAUDE.md
Loading
Loading