lint-json.yml 736 B

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