1
0

lint-json.yml 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. - '!app/javascript/mastodon/locales/*.json'
  13. pull_request:
  14. paths:
  15. - 'package.json'
  16. - 'yarn.lock'
  17. - '.prettier*'
  18. - '**/*.json'
  19. - '.github/workflows/lint-json.yml'
  20. - '!app/javascript/mastodon/locales/*.json'
  21. jobs:
  22. lint:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Clone repository
  26. uses: actions/checkout@v3
  27. - name: Set up Node.js
  28. uses: actions/setup-node@v3
  29. with:
  30. cache: yarn
  31. - name: Install all yarn packages
  32. run: yarn --frozen-lockfile
  33. - name: Prettier
  34. run: yarn prettier --check "**/*.json"