Add connection reuse and pooling #30
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: | |
| - '8.4' | |
| - '8.5' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: curl, swoole | |
| coverage: none | |
| # utopia-php/pools -> utopia-php/telemetry declares ext-opentelemetry and | |
| # ext-protobuf, but only the no-op telemetry path is used at runtime, so the | |
| # packages are installed without loading the extensions (loading them | |
| # alongside swoole segfaults the test process on PHP 8.4). | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 | |
| with: | |
| composer-options: "--ignore-platform-req=ext-opentelemetry --ignore-platform-req=ext-protobuf" | |
| - name: Audit dependencies | |
| run: composer audit | |
| - name: Check formatting | |
| run: composer format:check | |
| - name: Analyze | |
| run: composer analyze | |
| - name: Check refactors | |
| run: composer refactor:check | |
| - name: Test | |
| run: composer test |