Skip to content

Commit e0995fd

Browse files
committed
Image in matrix for Postgres int tests
1 parent b2bcb27 commit e0995fd

File tree

1 file changed

+6
-56
lines changed

1 file changed

+6
-56
lines changed

.github/workflows/ci.yaml

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

76-
integration-tests-postgres-14:
77-
name: PostgreSQL integration tests (14)
76+
integration-tests-postgres:
77+
name: PostgreSQL integration tests
7878
needs: tests
7979
services:
8080
postgres:
81-
image: postgres:14
81+
image: ${{ matrix.image }}
8282
ports:
8383
- 5432
8484
env:
@@ -100,6 +100,9 @@ jobs:
100100
- '7.4'
101101
- '8.0'
102102
- '8.1'
103+
image:
104+
- 'postgres:14'
105+
- 'postgres:18'
103106

104107
steps:
105108
- uses: actions/checkout@v2
@@ -126,59 +129,6 @@ jobs:
126129
# Required by old repository tests
127130
DATABASE: "pgsql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/testdb"
128131

129-
integration-tests-postgres-18:
130-
name: PostgreSQL integration tests (18)
131-
needs: tests
132-
services:
133-
postgres:
134-
image: postgres:18
135-
ports:
136-
- 5432
137-
env:
138-
POSTGRES_PASSWORD: postgres
139-
POSTGRES_DB: testdb
140-
options: >-
141-
--health-cmd pg_isready
142-
--health-interval 10s
143-
--health-timeout 5s
144-
--health-retries 5
145-
--tmpfs /var/lib/postgres
146-
runs-on: "ubuntu-24.04"
147-
timeout-minutes: 60
148-
149-
strategy:
150-
fail-fast: false
151-
matrix:
152-
php:
153-
- '7.4'
154-
- '8.0'
155-
- '8.1'
156-
157-
steps:
158-
- uses: actions/checkout@v5
159-
160-
- name: Setup PHP Action
161-
uses: shivammathur/setup-php@v2
162-
with:
163-
php-version: ${{ matrix.php }}
164-
coverage: none
165-
extensions: pdo_pgsql, gd
166-
tools: cs2pr
167-
168-
- uses: ramsey/composer-install@v3
169-
with:
170-
dependency-versions: "highest"
171-
172-
- name: Setup problem matchers for PHPUnit
173-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
174-
175-
- name: Run integration test suite vs Postgresql
176-
run: composer run-script integration
177-
env:
178-
DATABASE_URL: "pgsql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/testdb?server_version=10"
179-
# Required by old repository tests
180-
DATABASE: "pgsql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/testdb"
181-
182132
integration-tests-mysql-80:
183133
name: MySQL integration tests (8.0)
184134
needs: tests

0 commit comments

Comments
 (0)