diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-03-18 12:12:39 +0100 |
|---|---|---|
| committer | Caleb Maclennan <caleb@alerque.com> | 2022-03-19 17:13:15 +0300 |
| commit | 480c05257211b3e566f33fdf8cf051233e2dab30 (patch) | |
| tree | 8ff9dcbab0cdc040cb1fec5b3c0cea3bdd4625c9 | |
| parent | f6509d4fd5dfc0363aada9b1653934356e9abd3f (diff) | |
| download | luasocket-480c05257211b3e566f33fdf8cf051233e2dab30.tar.gz luasocket-480c05257211b3e566f33fdf8cf051233e2dab30.tar.bz2 luasocket-480c05257211b3e566f33fdf8cf051233e2dab30.zip | |
ci: Add workflow to run luacheck linter
| -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 . | ||
