Skip to content

Hangs forever with Event library on Github Actions #65

Description

@PNixx

Example file .github/workflows/testing.yml never finish. If remove extension event will be work correctly.

name: Testing

on:
  push:
    branches: [ '**' ]
  pull_request:
    branches: [ 'main' ]

jobs:
  postgres:
    name: Testing
    runs-on: ubuntu-latest

    strategy:
      fail-fast: true
      max-parallel: 1
      matrix:
        php-version: [ '8.2' ]

    env:
      extensions: sockets,pcntl,event

    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 15432:5432
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    steps:
      - name: Set up PHP ${{ matrix.php-version }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          extensions: ${{ env.extensions }}
      - run: |
          echo '{"require": {"amphp/postgres": "^2.0"}}' > composer.json

      - name: Composer install
        run: composer install --no-progress --prefer-dist --optimize-autoloader

      - run: php -r 'require_once "vendor/autoload.php"; $pool = new \Amp\Postgres\PostgresConnectionPool(\Amp\Postgres\PostgresConfig::fromString("host=localhost user=postgres password=postgres port=15432")); print_r($pool->execute("SELECT 1")->fetchRow());'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions