super-linter.yml 851 B

1234567891011121314151617181920212223242526272829
  1. # This workflow executes several linters on changed files based on languages used in your code base whenever
  2. # you push a code or open a pull request.
  3. #
  4. # You can adjust the behavior by modifying this file.
  5. # For more information, see:
  6. # https://github.com/github/super-linter
  7. name: Lint Code Base
  8. on:
  9. push:
  10. branches: ["main","master"]
  11. pull_request:
  12. branches: ["main","master"]
  13. jobs:
  14. run-lint:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout code
  18. uses: actions/checkout@v3
  19. with:
  20. # Full git history is needed to get a proper list of changed files within `super-linter`
  21. fetch-depth: 0
  22. - name: Lint Code Base
  23. uses: github/super-linter@v4
  24. env:
  25. VALIDATE_ALL_CODEBASE: false
  26. DEFAULT_BRANCH: "main"
  27. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}