You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
659 B

  1. ---
  2. name: Static checks
  3. on:
  4. push:
  5. branches: [ main ]
  6. pull_request:
  7. branches: [ main ]
  8. jobs:
  9. checks:
  10. name: Run static checks
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout current PR
  14. uses: actions/checkout@v2
  15. with:
  16. fetch-depth: 0
  17. - name: Run shellcheck
  18. run: |
  19. scversion="stable" # or "v0.4.7", or "latest"
  20. wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
  21. sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/
  22. shellcheck --version
  23. shellcheck *.sh