Skip to content

Commit 4501d4d

Browse files
committed
Postgres 14 & 18 setup
1 parent f925665 commit 4501d4d

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,61 @@ jobs:
7373
- name: Run integration test suite
7474
run: composer run-script integration
7575

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)
78131
needs: tests
79132
services:
80133
postgres:

0 commit comments

Comments
 (0)