Add SESSION hash support to Request class #155
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] | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php }}${{ matrix.deps && format(' / {0}', matrix.deps) || '' }}${{ matrix.coverage && ' / Coverage' || '' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Lowest supported dependencies test | |
| - php: "8.2" | |
| deps: "lowest" | |
| # Standard tests across all supported versions | |
| - php: "8.2" | |
| - php: "8.3" | |
| - php: "8.4" | |
| - php: "8.5" | |
| # Coverage run | |
| - php: "8.3" | |
| coverage: true | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: intl, mbstring | |
| tools: composer | |
| coverage: ${{ matrix.coverage && 'xdebug' || 'none' }} | |
| - name: Show versions | |
| run: | | |
| php -v | |
| composer --version | |
| - name: Get Composer cache dir | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache Composer | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: composer-${{ runner.os }}-${{ matrix.php }}-${{ matrix.deps || 'stable' }}-${{ hashFiles('**/composer.json') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}-${{ matrix.php }}- | |
| - name: Validate composer.json | |
| run: composer validate --strict --no-check-publish | |
| - name: Install dependencies | |
| run: | | |
| if [ "${{ matrix.deps }}" = "lowest" ]; then | |
| composer update --prefer-lowest --prefer-stable --no-interaction --prefer-dist --no-progress | |
| else | |
| composer update --prefer-stable --no-interaction --prefer-dist --no-progress | |
| fi | |
| - name: Check platform requirements | |
| run: composer check-platform-reqs | |
| - name: Ensure build directory exists | |
| run: mkdir -p build/logs | |
| - name: Check code style | |
| continue-on-error: true | |
| run: composer lint | |
| - name: Run static analysis | |
| run: composer analyse | |
| - name: Run tests | |
| if: ${{ !matrix.coverage }} | |
| run: composer test | |
| - name: Run tests with coverage | |
| if: ${{ matrix.coverage }} | |
| run: ./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.coverage }} | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5 | |
| with: | |
| files: build/logs/clover.xml | |
| fail_ci_if_error: false |