Skip to content

Commit a5bdd42

Browse files
authored
Add PostgreSQL 18 workflow to CI configuration (#57232)
1 parent 83b737b commit a5bdd42

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/databases.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,55 @@ jobs:
147147
env:
148148
DB_CONNECTION: mariadb
149149

150+
pgsql_18:
151+
runs-on: ubuntu-24.04
152+
timeout-minutes: 5
153+
154+
services:
155+
postgresql:
156+
image: postgres:18
157+
env:
158+
POSTGRES_DB: laravel
159+
POSTGRES_USER: forge
160+
POSTGRES_PASSWORD: password
161+
ports:
162+
- 5432:5432
163+
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
164+
165+
strategy:
166+
fail-fast: true
167+
168+
name: PostgreSQL 18
169+
170+
steps:
171+
- name: Checkout code
172+
uses: actions/checkout@v4
173+
174+
- name: Setup PHP
175+
uses: shivammathur/setup-php@v2
176+
with:
177+
php-version: 8.3
178+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr
179+
tools: composer:v2
180+
coverage: none
181+
182+
- name: Set Framework version
183+
run: composer config version "12.x-dev"
184+
185+
- name: Install dependencies
186+
uses: nick-fields/retry@v3
187+
with:
188+
timeout_minutes: 5
189+
max_attempts: 5
190+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
191+
192+
- name: Execute tests
193+
run: vendor/bin/phpunit tests/Integration/Database
194+
env:
195+
DB_CONNECTION: pgsql
196+
DB_USERNAME: forge
197+
DB_PASSWORD: password
198+
150199
pgsql_14:
151200
runs-on: ubuntu-24.04
152201
timeout-minutes: 5

0 commit comments

Comments
 (0)