lint.yml 885 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: linter
  2. on:
  3. push:
  4. branches:
  5. - develop
  6. - main
  7. pull_request:
  8. branches:
  9. - develop
  10. - main
  11. permissions:
  12. contents: write
  13. jobs:
  14. quality:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Setup PHP
  19. uses: shivammathur/setup-php@v2
  20. with:
  21. php-version: '8.4'
  22. - name: Install Dependencies
  23. run: |
  24. composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
  25. npm install
  26. - name: Run Pint
  27. run: vendor/bin/pint
  28. - name: Format Frontend
  29. run: npm run format
  30. - name: Lint Frontend
  31. run: npm run lint
  32. # - name: Commit Changes
  33. # uses: stefanzweifel/git-auto-commit-action@v5
  34. # with:
  35. # commit_message: fix code style
  36. # commit_options: '--no-verify'