lint.yaml 774 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: lint
  2. on:
  3. push:
  4. branches: '**'
  5. pull_request:
  6. branches:
  7. - 'master'
  8. - 'rolling'
  9. jobs:
  10. lua-linter:
  11. name: "Linting with luacheck"
  12. runs-on: ubuntu-20.04
  13. steps:
  14. - uses: actions/checkout@v2
  15. - uses: leafo/gh-actions-lua@v8
  16. - uses: leafo/gh-actions-luarocks@v4
  17. - name: Use luacheck
  18. run: luarocks install luacheck
  19. - name: Run luacheck
  20. run: luacheck *.lua lua/
  21. shell-linter:
  22. name: "Linting with shellcheck"
  23. runs-on: ubuntu-20.04
  24. steps:
  25. - uses: actions/checkout@v2
  26. - name: Use shellcheck
  27. run: sudo apt-get install shellcheck
  28. - name: Run shellcheck
  29. run: |
  30. pwd
  31. shellcheck $(find . -name "*.sh")