lint-eslint-when-unrelated.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. #
  6. # Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions
  7. # https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
  8. name: Lint eslint
  9. on:
  10. pull_request:
  11. paths-ignore:
  12. - '.github/workflows/**'
  13. - 'src/**'
  14. - 'apps/**/appinfo/info.xml'
  15. - 'package.json'
  16. - 'package-lock.json'
  17. - 'tsconfig.json'
  18. - '.eslintrc.*'
  19. - '.eslintignore'
  20. - '**.js'
  21. - '**.ts'
  22. - '**.vue'
  23. permissions:
  24. contents: read
  25. jobs:
  26. lint:
  27. permissions:
  28. contents: none
  29. runs-on: ubuntu-latest
  30. name: eslint
  31. steps:
  32. - run: 'echo "No eslint required"'