coding-standards.yml 885 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: "Coding Standards"
  2. on:
  3. pull_request:
  4. branches:
  5. - "*.x"
  6. push:
  7. branches:
  8. - "*.x"
  9. jobs:
  10. coding-standards:
  11. name: "Coding Standards"
  12. runs-on: "ubuntu-20.04"
  13. strategy:
  14. matrix:
  15. php-version:
  16. - "7.4"
  17. steps:
  18. - name: "Checkout"
  19. uses: "actions/checkout@v2"
  20. - name: "Install PHP"
  21. uses: "shivammathur/setup-php@v2"
  22. with:
  23. coverage: "none"
  24. php-version: "${{ matrix.php-version }}"
  25. tools: "cs2pr"
  26. - name: "Install dependencies with Composer"
  27. uses: "ramsey/composer-install@v1"
  28. with:
  29. dependency-versions: "highest"
  30. composer-options: "--prefer-stable"
  31. # https://github.com/doctrine/.github/issues/3
  32. - name: "Run PHP_CodeSniffer"
  33. run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"