linter.yml 1.2 KB

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