Skip to content

Commit faa56bd

Browse files
authored
Re-enable PostgreSQL build (#39890)
1 parent 940b18f commit faa56bd

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

.github/workflows/databases.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -132,49 +132,49 @@ jobs:
132132
DB_CONNECTION: mysql
133133
DB_USERNAME: root
134134

135-
# pgsql:
136-
# runs-on: ubuntu-20.04
137-
138-
# services:
139-
# postgresql:
140-
# image: postgres:14
141-
# env:
142-
# POSTGRES_DB: forge
143-
# POSTGRES_USER: forge
144-
# POSTGRES_PASSWORD: password
145-
# ports:
146-
# - 5432:5432
147-
# options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
148-
149-
# strategy:
150-
# fail-fast: true
151-
152-
# name: PostgreSQL 14
153-
154-
# steps:
155-
# - name: Checkout code
156-
# uses: actions/checkout@v2
157-
158-
# - name: Setup PHP
159-
# uses: shivammathur/setup-php@v2
160-
# with:
161-
# php-version: 8.1
162-
# extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql
163-
# tools: composer:v2
164-
# coverage: none
165-
166-
# - name: Install dependencies
167-
# uses: nick-invision/retry@v1
168-
# with:
169-
# timeout_minutes: 5
170-
# max_attempts: 5
171-
# command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
172-
173-
# - name: Execute tests
174-
# run: vendor/bin/phpunit tests/Integration/Database --verbose
175-
# env:
176-
# DB_CONNECTION: pgsql
177-
# DB_PASSWORD: password
135+
pgsql:
136+
runs-on: ubuntu-20.04
137+
138+
services:
139+
postgresql:
140+
image: postgres:14
141+
env:
142+
POSTGRES_DB: forge
143+
POSTGRES_USER: forge
144+
POSTGRES_PASSWORD: password
145+
ports:
146+
- 5432:5432
147+
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
148+
149+
strategy:
150+
fail-fast: true
151+
152+
name: PostgreSQL 14
153+
154+
steps:
155+
- name: Checkout code
156+
uses: actions/checkout@v2
157+
158+
- name: Setup PHP
159+
uses: shivammathur/setup-php@v2
160+
with:
161+
php-version: 8.1
162+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql
163+
tools: composer:v2
164+
coverage: none
165+
166+
- name: Install dependencies
167+
uses: nick-invision/retry@v1
168+
with:
169+
timeout_minutes: 5
170+
max_attempts: 5
171+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
172+
173+
- name: Execute tests
174+
run: vendor/bin/phpunit tests/Integration/Database --verbose
175+
env:
176+
DB_CONNECTION: pgsql
177+
DB_PASSWORD: password
178178

179179
mssql:
180180
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)