lua_lint.yml 715 B

1234567891011121314151617181920212223242526272829303132
  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. - '.github/workflows/**.yml'
  8. pull_request:
  9. paths:
  10. - 'builtin/**.lua'
  11. - '.github/workflows/**.yml'
  12. jobs:
  13. luacheck:
  14. name: "Builtin Luacheck and Unit Tests"
  15. runs-on: ubuntu-18.04
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Install luarocks
  19. run: |
  20. sudo apt-get install luarocks -qyy
  21. - name: Install luarocks tools
  22. run: |
  23. luarocks install --local luacheck
  24. luarocks install --local busted
  25. - name: Run checks
  26. run: |
  27. $HOME/.luarocks/bin/luacheck builtin
  28. $HOME/.luarocks/bin/busted builtin