lint-yml.yml 841 B

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