fix(discovery): support PSR-4 paths defined as arrays in composer.json #3854
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: Coding Conventions | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-style: | |
| name: Run style check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.5 | |
| coverage: none | |
| - name: Install dependencies | |
| run: | | |
| composer update --prefer-dist --no-interaction --ignore-platform-reqs | |
| - name: Run Mago | |
| run: | | |
| composer fmt -- --check | |
| composer lint -- --reporting-format=github | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Format | |
| run: bun run fmt:check | |
| phpstan: | |
| name: "Run static analysis: PHPStan" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.5 | |
| coverage: none | |
| - name: Install composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan --error-format=github | |
| # rector: | |
| # name: "Run static analysis: Rector" | |
| # runs-on: ubuntu-latest | |
| # | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # | |
| # - name: Setup PHP | |
| # uses: shivammathur/setup-php@v2 | |
| # with: | |
| # php-version: 8.5 | |
| # coverage: none | |
| # | |
| # - name: Install composer dependencies | |
| # uses: ramsey/composer-install@v3 | |
| # | |
| # - name: Run Rector | |
| # run: vendor/bin/rector process --no-ansi --dry-run --no-progress-bar |