2
0

lua.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: lua_lint
  2. # Lint on lua changes on builtin or if workflow changed
  3. on:
  4. push:
  5. paths:
  6. - 'builtin/**.lua'
  7. - 'games/devtest/**.lua'
  8. - '.github/workflows/**.yml'
  9. pull_request:
  10. paths:
  11. - 'builtin/**.lua'
  12. - 'games/devtest/**.lua'
  13. - '.github/workflows/**.yml'
  14. jobs:
  15. # Note that the integration tests are also run build.yml, but only when C++ code is changed.
  16. integration_tests:
  17. name: "Compile and run multiplayer tests"
  18. runs-on: ubuntu-20.04
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Install deps
  22. run: |
  23. source ./util/ci/common.sh
  24. install_linux_deps clang-10 gdb
  25. - name: Build
  26. run: |
  27. ./util/ci/build.sh
  28. env:
  29. CC: clang-10
  30. CXX: clang++-10
  31. - name: Integration test + devtest
  32. run: |
  33. ./util/test_multiplayer.sh
  34. luacheck:
  35. name: "Builtin Luacheck and Unit Tests"
  36. runs-on: ubuntu-18.04
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: Install luarocks
  40. run: |
  41. sudo apt-get install luarocks -qyy
  42. - name: Install luarocks tools
  43. run: |
  44. luarocks install --local luacheck
  45. luarocks install --local busted
  46. - name: Run checks (builtin)
  47. run: |
  48. $HOME/.luarocks/bin/luacheck builtin
  49. $HOME/.luarocks/bin/busted builtin
  50. - name: Run checks (devtest)
  51. run: |
  52. $HOME/.luarocks/bin/luacheck --config=games/devtest/.luacheckrc games/devtest