Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

lint-php.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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
  6. on:
  7. pull_request:
  8. push:
  9. branches:
  10. - main
  11. - master
  12. - stable*
  13. permissions:
  14. contents: read
  15. concurrency:
  16. group: lint-php-${{ github.head_ref || github.run_id }}
  17. cancel-in-progress: true
  18. jobs:
  19. php-lint:
  20. runs-on: ubuntu-latest
  21. strategy:
  22. matrix:
  23. php-versions: [ "8.0", "8.1", "8.2" ]
  24. name: php-lint
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
  28. - name: Set up php ${{ matrix.php-versions }}
  29. uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
  30. with:
  31. php-version: ${{ matrix.php-versions }}
  32. coverage: none
  33. env:
  34. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  35. - name: Lint
  36. run: composer run lint
  37. summary:
  38. permissions:
  39. contents: none
  40. runs-on: ubuntu-latest
  41. needs: php-lint
  42. if: always()
  43. name: php-lint-summary
  44. steps:
  45. - name: Summary status
  46. run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi