Skip to content

Commit 368ea63

Browse files
committed
WIP: Add postgresql server to CI build
* `POSTGRES_PASSWORD` is required by the Docker image, but its value is not important, because we can rely on the trust authentication setup for local connections [1]. * 5432 is the default port and is expected by Rails. * PostgreSQL v17 is currently the default version for Heroku [2]. [1]: https://hub.docker.com/_/postgres/#environment-variables [2]: https://devcenter.heroku.com/articles/heroku-postgres-version-support#version-support
1 parent 9efe762 commit 368ea63

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
timeout-minutes: 10
7+
env:
8+
PGHOST: localhost
9+
PGUSER: postgres
10+
PGPASSWORD: password
11+
services:
12+
postgres:
13+
image: postgres:17
14+
env:
15+
POSTGRES_PASSWORD: password
16+
ports:
17+
- 5432:5432
718
steps:
819
- name: Checkout code
920
uses: actions/checkout@v3

0 commit comments

Comments
 (0)