linter.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. #################################
  3. #################################
  4. ## Super Linter GitHub Actions ##
  5. #################################
  6. #################################
  7. name: Lint Code Base
  8. #
  9. # Documentation:
  10. # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
  11. #
  12. #############################
  13. # Start the job on all push #
  14. #############################
  15. on:
  16. push:
  17. branches-ignore: [master, main]
  18. # Remove the line above to run when pushing to master
  19. pull_request:
  20. ###############
  21. # Set the Job #
  22. ###############
  23. jobs:
  24. build:
  25. # Name the Job
  26. name: Lint Code Base
  27. # Set the agent to run on
  28. runs-on: ubuntu-latest
  29. ##################
  30. # Load all steps #
  31. ##################
  32. steps:
  33. ##########################
  34. # Checkout the code base #
  35. ##########################
  36. - name: Checkout Code
  37. uses: actions/checkout@v2
  38. with:
  39. # Full git history is needed to get a proper list of changed files within `super-linter`
  40. fetch-depth: 0
  41. ################################
  42. # Run Linter against code base #
  43. ################################
  44. - name: Lint Code Base
  45. uses: github/super-linter@v4
  46. env:
  47. VALIDATE_ALL_CODEBASE: false
  48. # Change to 'master' if your main branch differs
  49. DEFAULT_BRANCH: main
  50. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}