use symfony console, to get fast feedback #51
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: Run on Project | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: null | |
| jobs: | |
| run_on_project: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php_version: ['8.2'] | |
| steps: | |
| - | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php_version }} | |
| coverage: none | |
| - run: composer require rector/argtyper --ansi | |
| # clone laravel project with dependencies | |
| - run: git clone https://github.com/symfony/console.git --depth=1 | |
| - run: composer install --working-dir console --ansi | |
| # ensure phpstan is available | |
| - run: composer require --working-dir console phpstan/phpstan --ansi | |
| # on whole project, to be able to load vendor/autoload.php | |
| - run: vendor/bin/argtyper add-types console --ansi |