Skip to content

Commit

Permalink
ci: add lint workflow for lua (#89)
Browse files Browse the repository at this point in the history
* ci: add lint workflow for lua

* fix: use correct path

* fix: actually set path
  • Loading branch information
hougesen authored Dec 29, 2023
1 parent 038e347 commit c4dbec7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/validate-lua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: validate-lua

on:
push:
paths:
- 'lua/**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
stylua:
name: stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --color always --check .

luacheck:
name: Luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Prepare
run: |
sudo apt-get update
sudo apt-get install -y luarocks
sudo luarocks install luacheck
- name: Lint
run: luacheck lua --globals vim

0 comments on commit c4dbec7

Please sign in to comment.