ci: setup stylua action

This commit is contained in:
Ade Attwood 2022-09-04 16:13:02 +01:00
parent b069be83f5
commit 483106ae25
5 changed files with 21 additions and 8 deletions

View file

@ -35,6 +35,19 @@ jobs:
- name: Run luacheck
run: luacheck .
stylua:
name: StyLua
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run stylua
uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check .
clang-format:
name: Clang Format
runs-on: ubuntu-latest

View file

@ -31,7 +31,7 @@ end
controller.update = function(text)
vim.schedule(function()
window.set_items(controller.items(text))
vim.cmd("syntax clear IvyMatch")
vim.cmd "syntax clear IvyMatch"
vim.cmd("syntax match IvyMatch '[(" .. text .. ")]'")
end)
end

View file

@ -10,9 +10,9 @@ end)
it("should find a dot file", function(t)
local current_dir = libivy.ivy_cwd()
local matches = libivy.ivy_files("ci.yml", current_dir);
local matches = libivy.ivy_files("ci.yml", current_dir)
if matches ~= ".github/workflows/ci.yml\n" then
t.error("Invalid matches: " .. matches)
end
end);
end)