Merge pull request #930 from Custom-Roles-for-TTT/dev #2363
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Luacheck | |
| on: [ push, pull_request ] | |
| jobs: | |
| luacheck: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| luaVersion: ["5.1"] #[ "5.4", "5.3", "5.2", "5.1", "luajit" ] # , "luajit-openresty" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 'Malivil/gluacheck' | |
| path: 'gluacheck' | |
| - name: Setup ‘lua’ | |
| uses: leafo/gh-actions-lua@v9 | |
| with: | |
| luaVersion: ${{ matrix.luaVersion }} | |
| buildCache: false | |
| - name: Setup ‘luarocks’ | |
| uses: leafo/gh-actions-luarocks@v4 | |
| - name: Setup dependencies | |
| run: luarocks install --deps-only luacheck-dev-1.rockspec | |
| - name: Build ‘luacheck’ (bootstrap) | |
| run: luarocks make luacheck-dev-1.rockspec | |
| - name: Run ‘luacheck’ (dogfood) | |
| run: lua -e 'package.path="./gluacheck/src/?.lua;./gluacheck/src/?/init.lua;"..package.path' gluacheck/bin/luacheck.lua gamemodes scripts |