lint-json.yml 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: JSON 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. - '**/*.json'
  13. - '.github/workflows/lint-json.yml'
  14. - '!app/javascript/mastodon/locales/*.json'
  15. pull_request:
  16. paths:
  17. - 'package.json'
  18. - 'yarn.lock'
  19. - '.nvmrc'
  20. - '.prettier*'
  21. - '**/*.json'
  22. - '.github/workflows/lint-json.yml'
  23. - '!app/javascript/mastodon/locales/*.json'
  24. jobs:
  25. lint:
  26. runs-on: ubuntu-latest
  27. steps:
  28. - name: Clone repository
  29. uses: actions/checkout@v4
  30. - name: Set up Javascript environment
  31. uses: ./.github/actions/setup-javascript
  32. - name: Prettier
  33. run: yarn lint:json