updated to permit access to arguments by ordinal #8
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| php: | |
| name: PHP Static Analysis & Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: [8.2] | |
| steps: | |
| # 1. Checkout repository | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # 2. Set up PHP | |
| - name: Setup PHP ${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: mbstring, sockets | |
| coverage: xdebug | |
| # 3. Install Composer dependencies | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-interaction | |
| # 4. Run PHPStan static analysis | |
| - name: PHPStan Analysis | |
| run: vendor/bin/phpstan analyse src tests | |
| # 5. Run PHPUnit tests | |
| - name: PHPUnit | |
| run: vendor/bin/phpunit --colors=always | |