Skip to content

Commit 5e88821

Browse files
committed
fix: missing phpbench setup in baseline workflow
1 parent b264eae commit 5e88821

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/baseline.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ jobs:
9393
benchmark-baseline:
9494
runs-on: ubuntu-latest
9595

96+
services:
97+
postgres:
98+
image: postgres:18-alpine
99+
env:
100+
POSTGRES_USER: postgres
101+
POSTGRES_PASSWORD: postgres
102+
POSTGRES_DB: postgres
103+
ports:
104+
- 5432/tcp
105+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
106+
96107
strategy:
97108
fail-fast: false
98109
matrix:
@@ -133,7 +144,14 @@ jobs:
133144
php-version: "${{ matrix.php-version }}"
134145
dependencies: "locked"
135146
coverage: "none"
147+
extensions: ':psr, bcmath, dom, hash, json, mbstring, xml, xmlwriter, xmlreader, zlib, pgsql'
136148
cache-key-suffix: "-locked"
149+
apt-packages: "build-essential autoconf automake libtool protobuf-compiler libprotobuf-c-dev"
150+
pie-extensions: "flow-php/pg-query-ext:1.x-dev"
151+
152+
- name: "Generate phpbench.json with dynamic port"
153+
run: |
154+
sed 's/127.0.0.1:5432/127.0.0.1:${{ job.services.postgres.ports[5432] }}/' phpbench.json.dist > phpbench.json
137155
138156
- name: "Benchmark"
139157
run: |

0 commit comments

Comments
 (0)