diff options
-rw-r--r-- | .github/workflows/luacheck.yml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index 13993cc..597cd64 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml | |||
@@ -3,24 +3,17 @@ name: Luacheck | |||
3 | on: [push, pull_request] | 3 | on: [push, pull_request] |
4 | 4 | ||
5 | jobs: | 5 | jobs: |
6 | luacheck: | ||
7 | runs-on: ubuntu-latest | ||
8 | 6 | ||
7 | luacheck: | ||
8 | runs-on: ubuntu-20.04 | ||
9 | steps: | 9 | steps: |
10 | - name: Checkout | 10 | - name: Checkout |
11 | uses: actions/checkout@v2 | 11 | uses: actions/checkout@v3 |
12 | 12 | - name: Setup ‘lua’ | |
13 | - name: Setup Lua | 13 | uses: leafo/gh-actions-lua@v9 |
14 | uses: leafo/gh-actions-lua@v8 | 14 | - name: Setup ‘luarocks’ |
15 | with: | ||
16 | luaVersion: 5.4 | ||
17 | |||
18 | - name: Setup Lua Rocks | ||
19 | uses: leafo/gh-actions-luarocks@v4 | 15 | uses: leafo/gh-actions-luarocks@v4 |
20 | 16 | - name: Setup ‘luacheck’ | |
21 | - name: Setup dependencies | ||
22 | run: luarocks install luacheck | 17 | run: luarocks install luacheck |
23 | 18 | - name: Run ‘luacheck’ linter | |
24 | - name: Run Code Linter | 19 | run: luacheck . |
25 | run: | | ||
26 | luacheck . | ||