You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lint-php-cs.yml 1019B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. name: Lint php-cs
  6. on: pull_request
  7. permissions:
  8. contents: read
  9. concurrency:
  10. group: lint-php-cs-${{ github.head_ref || github.run_id }}
  11. cancel-in-progress: true
  12. jobs:
  13. lint:
  14. runs-on: ubuntu-latest
  15. name: php-cs
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.5.2
  19. - name: Set up php
  20. uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
  21. with:
  22. php-version: 8.1
  23. coverage: none
  24. ini-file: development
  25. env:
  26. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  27. - name: Install dependencies
  28. run: composer i
  29. - name: Lint
  30. run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )