File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77 paths :
8+ - " .github/workflows/luacheck.yml"
89 - " **/*.lua"
10+ pull_request :
11+ paths :
912 - " .github/workflows/luacheck.yml"
13+ - " **/*.lua"
1014 workflow_dispatch :
1115
1216jobs :
1317 luacheck :
14- uses : BlueLua/bluelua.github.io/.github/workflows/luacheck.yml@main
18+ name : Luacheck
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v6
24+
25+ - name : Setup LuaJIT
26+ uses : leafo/gh-actions-lua@v13
27+ with :
28+ luaVersion : luajit
29+
30+ - name : Setup LuaRocks
31+ uses : leafo/gh-actions-luarocks@v6
32+
33+ - name : Install Luacheck
34+ run : luarocks install luacheck
35+
36+ - name : Resolve paths
37+ id : paths
38+ run : |
39+ if [ -d src ]; then
40+ echo "paths=src" >> "$GITHUB_OUTPUT"
41+ else
42+ echo "paths=lua" >> "$GITHUB_OUTPUT"
43+ fi
44+
45+ - name : Run Luacheck
46+ run : luacheck ${{ steps.paths.outputs.paths }}
You can’t perform that action at this time.
0 commit comments