3 # Lint on lua changes on builtin or if workflow changed
8 - 'games/devtest/**.lua'
9 - '.github/workflows/**.yml'
13 - 'games/devtest/**.lua'
14 - '.github/workflows/**.yml'
17 # Note that the integration tests are also run build.yml, but only when C++ code is changed.
19 name: "Compile and run multiplayer tests"
22 - uses: actions/checkout@v3
25 source ./util/ci/common.sh
26 install_linux_deps clang-10 gdb libluajit-5.1-dev
34 CMAKE_FLAGS: "-DENABLE_GETTEXT=0 -DBUILD_SERVER=0"
36 - name: Integration test + devtest
38 ./util/test_multiplayer.sh
41 name: "Builtin Luacheck and Unit Tests"
44 - uses: actions/checkout@v3
45 - uses: leafo/gh-actions-lua@v9
48 - uses: leafo/gh-actions-luarocks@v4
50 - name: Install luarocks tools
52 luarocks install --local luacheck
53 luarocks install --local busted
55 - name: Run checks (builtin)
57 $HOME/.luarocks/bin/luacheck builtin
58 $HOME/.luarocks/bin/busted builtin
60 - name: Run checks (devtest)
62 $HOME/.luarocks/bin/luacheck --config=games/devtest/.luacheckrc games/devtest