Skip to content

Commit

Permalink
feat(workflow): Add luacheck github action (#18)
Browse files Browse the repository at this point in the history
* Add luacheck action

* Fix workflow file
  • Loading branch information
itmecho authored Sep 27, 2024
1 parent 85c8254 commit 09cb0a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,28 @@ on:
- main

jobs:
stylua:
name: Formatting
formatting:
name: Formatting (stylua)
runs-on: ubuntu-latest
steps:
- name: Fetch code
uses: actions/checkout@v4

- name: Check formatting
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .

lint:
name: Lint (luacheck)
runs-on: ubuntu-latest
steps:
- name: Fetch code
uses: actions/checkout@v4

- name: Run luacheck
uses: lunarmodules/luacheck@v1
with:
args: lua
5 changes: 5 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
std = luajit

globals = {
"vim",
}

0 comments on commit 09cb0a1

Please sign in to comment.