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.yml 1.9KB

build(deps): bump the github-actions group with 4 updates Bumps the github-actions group with 4 updates: [dorny/paths-filter](https://github.com/dorny/paths-filter), [actions/checkout](https://github.com/actions/checkout), [codecov/codecov-action](https://github.com/codecov/codecov-action) and [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `dorny/paths-filter` from 3.0.0 to 3.0.2 - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](https://github.com/dorny/paths-filter/compare/v3...de90cc6fb38fc0963ad72b210f1f284cd68cea36) Updates `actions/checkout` from 4.1.1 to 4.1.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) Updates `codecov/codecov-action` from 3.1.5 to 4.1.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Commits](https://github.com/codecov/codecov-action/compare/v3.1.5...v4.1.1) Updates `peter-evans/create-pull-request` from 6.0.1 to 6.0.2 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/a4f52f8033a6168103c2538976c07b467e8163bc...70a41aba780001da0a30141984ae2a0c95d8704e) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
build(deps): bump the github-actions group with 4 updates Bumps the github-actions group with 4 updates: [dorny/paths-filter](https://github.com/dorny/paths-filter), [actions/checkout](https://github.com/actions/checkout), [codecov/codecov-action](https://github.com/codecov/codecov-action) and [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `dorny/paths-filter` from 3.0.0 to 3.0.2 - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](https://github.com/dorny/paths-filter/compare/v3...de90cc6fb38fc0963ad72b210f1f284cd68cea36) Updates `actions/checkout` from 4.1.1 to 4.1.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) Updates `codecov/codecov-action` from 3.1.5 to 4.1.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Commits](https://github.com/codecov/codecov-action/compare/v3.1.5...v4.1.1) Updates `peter-evans/create-pull-request` from 6.0.1 to 6.0.2 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/a4f52f8033a6168103c2538976c07b467e8163bc...70a41aba780001da0a30141984ae2a0c95d8704e) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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
  6. on:
  7. pull_request:
  8. permissions:
  9. contents: read
  10. concurrency:
  11. group: lint-php-${{ github.head_ref || github.run_id }}
  12. cancel-in-progress: true
  13. jobs:
  14. changes:
  15. runs-on: ubuntu-latest-low
  16. outputs:
  17. src: ${{ steps.changes.outputs.src}}
  18. steps:
  19. - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
  20. id: changes
  21. continue-on-error: true
  22. with:
  23. filters: |
  24. src:
  25. - '.github/workflows/**'
  26. - '3rdparty/**'
  27. - '**/lib/**'
  28. - '**/tests/**'
  29. - '**/vendor-bin/**'
  30. - '.php-cs-fixer.dist.php'
  31. - 'composer.json'
  32. - 'composer.lock'
  33. - '**.php'
  34. lint:
  35. runs-on: ubuntu-latest
  36. needs: changes
  37. if: needs.changes.outputs.src != 'false'
  38. strategy:
  39. matrix:
  40. php-versions: [ "8.1", "8.2", "8.3" ]
  41. name: php-lint
  42. steps:
  43. - name: Checkout
  44. uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
  45. - name: Set up php ${{ matrix.php-versions }}
  46. uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
  47. with:
  48. php-version: ${{ matrix.php-versions }}
  49. coverage: none
  50. ini-file: development
  51. env:
  52. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  53. - name: Lint
  54. run: composer run lint
  55. summary:
  56. permissions:
  57. contents: none
  58. runs-on: ubuntu-latest-low
  59. needs: [changes, lint]
  60. if: always()
  61. name: php-lint-summary
  62. steps:
  63. - name: Summary status
  64. run: if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi