| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- name: "PHPStan"
- on:
- - push
- - pull_request
- permissions:
- contents: read
- env:
- COMPOSER_ROOT_VERSION: dev-main
- jobs:
- tests:
- name: "PHPStan"
- runs-on: ubuntu-latest
- strategy:
- matrix:
- php-version:
- - "8.1"
- - latest
- steps:
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- - uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
- with:
- php-version: "${{ matrix.php-version }}"
- coverage: none
- extensions: mongodb, redis, amqp
- - name: Add require for mongodb/mongodb to make tests runnable
- run: "composer require ${{ env.COMPOSER_FLAGS }} mongodb/mongodb --dev --no-update"
- - uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
- with:
- dependency-versions: highest
- - name: Run PHPStan
- run: composer phpstan
|