diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/luacheck.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..13993cc --- /dev/null +++ b/.github/workflows/luacheck.yml | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | name: Luacheck | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | luacheck: | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | |||
| 9 | steps: | ||
| 10 | - name: Checkout | ||
| 11 | uses: actions/checkout@v2 | ||
| 12 | |||
| 13 | - name: Setup Lua | ||
| 14 | uses: leafo/gh-actions-lua@v8 | ||
| 15 | with: | ||
| 16 | luaVersion: 5.4 | ||
| 17 | |||
| 18 | - name: Setup Lua Rocks | ||
| 19 | uses: leafo/gh-actions-luarocks@v4 | ||
| 20 | |||
| 21 | - name: Setup dependencies | ||
| 22 | run: luarocks install luacheck | ||
| 23 | |||
| 24 | - name: Run Code Linter | ||
| 25 | run: | | ||
| 26 | luacheck . | ||
