summaryrefslogtreecommitdiff
path: root/Data/Libraries/LDoc/.github/workflows/luacheck.yml
blob: 20b706ce436b4395cb4d981b3123e00a713c052b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Luacheck

on: [push, pull_request]

jobs:
  luacheck:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Setup Lua
      uses: leafo/gh-actions-lua@v8
      with:
        luaVersion: 5.4
    - name: Setup Lua Rocks
      uses: leafo/gh-actions-luarocks@v4
    - name: Setup dependencies
      run: luarocks install luacheck
    - name: Run Code Linter
      run: |
        luacheck .
        luarocks lint *.rockspec