|
73 | 73 | - name: Run integration test suite
|
74 | 74 | run: composer run-script integration
|
75 | 75 |
|
76 |
| - integration-tests-postgres: |
77 |
| - name: PostgreSQL integration tests |
| 76 | + integration-tests-postgres-14: |
| 77 | + name: PostgreSQL integration tests (14) |
| 78 | + needs: tests |
| 79 | + services: |
| 80 | + postgres: |
| 81 | + image: postgres:14 |
| 82 | + ports: |
| 83 | + - 5432 |
| 84 | + env: |
| 85 | + POSTGRES_PASSWORD: postgres |
| 86 | + POSTGRES_DB: testdb |
| 87 | + options: >- |
| 88 | + --health-cmd pg_isready |
| 89 | + --health-interval 10s |
| 90 | + --health-timeout 5s |
| 91 | + --health-retries 5 |
| 92 | + --tmpfs /var/lib/postgres |
| 93 | + runs-on: "ubuntu-24.04" |
| 94 | + timeout-minutes: 60 |
| 95 | + |
| 96 | + strategy: |
| 97 | + fail-fast: false |
| 98 | + matrix: |
| 99 | + php: |
| 100 | + - '7.4' |
| 101 | + - '8.0' |
| 102 | + - '8.1' |
| 103 | + |
| 104 | + steps: |
| 105 | + - uses: actions/checkout@v2 |
| 106 | + |
| 107 | + - name: Setup PHP Action |
| 108 | + uses: shivammathur/setup-php@v2 |
| 109 | + with: |
| 110 | + php-version: ${{ matrix.php }} |
| 111 | + coverage: none |
| 112 | + extensions: pdo_pgsql, gd |
| 113 | + tools: cs2pr |
| 114 | + |
| 115 | + - uses: "ramsey/composer-install@v1" |
| 116 | + with: |
| 117 | + dependency-versions: "highest" |
| 118 | + |
| 119 | + - name: Setup problem matchers for PHPUnit |
| 120 | + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 121 | + |
| 122 | + - name: Run integration test suite vs Postgresql |
| 123 | + run: composer run-script integration |
| 124 | + env: |
| 125 | + DATABASE_URL: "pgsql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/testdb?server_version=10" |
| 126 | + # Required by old repository tests |
| 127 | + DATABASE: "pgsql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/testdb" |
| 128 | + |
| 129 | + integration-tests-postgres-18: |
| 130 | + name: PostgreSQL integration tests (18) |
78 | 131 | needs: tests
|
79 | 132 | services:
|
80 | 133 | postgres:
|
|
0 commit comments