lint-yml.yml 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: YML Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - 'package.json'
  9. - 'yarn.lock'
  10. - '.nvmrc'
  11. - '.prettier*'
  12. - '**/*.yaml'
  13. - '**/*.yml'
  14. - '.github/workflows/lint-yml.yml'
  15. - '!config/locales/*.yml'
  16. pull_request:
  17. paths:
  18. - 'package.json'
  19. - 'yarn.lock'
  20. - '.nvmrc'
  21. - '.prettier*'
  22. - '**/*.yaml'
  23. - '**/*.yml'
  24. - '.github/workflows/lint-yml.yml'
  25. - '!config/locales/*.yml'
  26. jobs:
  27. lint:
  28. runs-on: ubuntu-latest
  29. steps:
  30. - name: Clone repository
  31. uses: actions/checkout@v4
  32. - name: Set up Node.js
  33. uses: actions/setup-node@v3
  34. with:
  35. cache: yarn
  36. node-version-file: '.nvmrc'
  37. - name: Install all yarn packages
  38. run: yarn --frozen-lockfile
  39. - name: Prettier
  40. run: yarn lint:yml