linter.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: Setup node
  44. uses: actions/setup-node@v2
  45. with:
  46. node-version: "16"
  47. registry-url: https://registry.npmjs.com/
  48. - name: Setup pnpm
  49. uses: pnpm/action-setup@v2
  50. with:
  51. version: latest
  52. - name: Build
  53. run: |
  54. pnpm install
  55. pnpm lint
  56. env:
  57. VALIDATE_ALL_CODEBASE: false
  58. DEFAULT_BRANCH: main
  59. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}