diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index bde09e8..e7d783d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..ae78049 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,5 @@ +std = luajit + +globals = { + "vim", +}