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 - name: Install luarocks
47 sudo apt-get update && sudo apt-get install -y luarocks
49 - name: Install luarocks tools
51 luarocks install --local luacheck
52 luarocks install --local busted
54 - name: Run checks (builtin)
56 $HOME/.luarocks/bin/luacheck builtin
57 $HOME/.luarocks/bin/busted builtin
59 - name: Run checks (devtest)
61 $HOME/.luarocks/bin/luacheck --config=games/devtest/.luacheckrc games/devtest