Detect all member types by default #327
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - | |
| repo: phpstan/phpstan-src | |
| executable: bin/phpstan | |
| - | |
| repo: spaze/phpstan-disallowed-calls | |
| - | |
| repo: infection/infection | |
| args: -c devTools/phpstan.neon | |
| php: 8.2 | |
| - | |
| repo: shipmonk-rnd/doctrine-mysql-index-hints | |
| - | |
| repo: shipmonk-rnd/doctrine-two-phase-migrations | |
| - | |
| repo: shipmonk-rnd/phpstan-rules | |
| - | |
| repo: shipmonk-rnd/phpstan-baseline-per-identifier | |
| - | |
| repo: shipmonk-rnd/input-mapper | |
| php: 8.3 | |
| - | |
| repo: shipmonk-rnd/composer-dependency-analyser | |
| - | |
| repo: shipmonk-rnd/coverage-guard | |
| - | |
| repo: ruudk/graphql-client-code-generator | |
| fail-fast: false | |
| steps: | |
| - | |
| name: Clone ${{ matrix.repo }} | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ matrix.repo }} | |
| token: ${{ secrets.PAT_GITHUB_CHECKOUT || github.token }} | |
| - | |
| name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php || '8.4' }} | |
| ini-file: development | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - | |
| name: Update Dead Code Detector | |
| run: | | |
| composer config repositories.pr vcs https://github.com/${{ github.event.pull_request.head.repo.full_name }} | |
| composer require --dev shipmonk/dead-code-detector:dev-${{ github.head_ref }} --with-all-dependencies --minimal-changes | |
| - | |
| name: Run analysis | |
| continue-on-error: true | |
| run: ${{ matrix.executable || 'vendor/bin/phpstan' }} analyse ${{ matrix.args }} -vvv --ansi --error-format=prettyJson > /tmp/phpstan-output.json | |
| - | |
| name: Check for internal errors | |
| run: jq -e '.errors[]' /tmp/phpstan-output.json && exit 1 || exit 0 | |
| - | |
| name: Check for dead code errors | |
| run: jq -e '.files[] | .messages[] | select(.identifier | test("^shipmonk\\.dead"))' /tmp/phpstan-output.json && exit 1 || exit 0 |