Skip to content

Commit 6085c2e

Browse files
committed
ci: use bitnami
1 parent bb4f791 commit 6085c2e

File tree

1 file changed

+23
-29
lines changed

1 file changed

+23
-29
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ concurrency:
1515
env:
1616
CARGO_TERM_COLOR: always
1717
RUST_BACKTRACE: full
18-
THEGRAPH_STORE_POSTGRES_DIESEL_URL: "postgresql://postgres:postgres@localhost:5432/graph_node_test"
18+
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
19+
THEGRAPH_STORE_POSTGRES_DIESEL_URL: "postgresql://graph:graph@localhost:5432/graph-test"
1920

2021
jobs:
2122
unit-tests:
@@ -28,21 +29,20 @@ jobs:
2829
ports:
2930
- 5001:5001
3031
postgres:
31-
image: postgres
32+
image: bitnami/postgresql
3233
env:
33-
POSTGRES_PASSWORD: postgres
34-
POSTGRES_DB: graph_node_test
35-
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
36-
POSTGRESQL_EXTRA_FLAGS: "-c max_connections=1000"
34+
POSTGRESQL_PASSWORD: graph
35+
POSTGRESQL_USERNAME: graph
36+
POSTGRESQL_DB: graph-test
37+
POSTGRESQL_INITDB_ARGS: "-E UTF8 --locale=C"
38+
POSTGRESQL_MAX_CONNECTIONS: 500
3739
options: >-
38-
--health-cmd pg_isready
40+
--health-cmd pg_isready -U graph
3941
--health-interval 10s
4042
--health-timeout 5s
4143
--health-retries 5
4244
ports:
4345
- 5432:5432
44-
env:
45-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
4646
steps:
4747
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
4848
- name: Setup dependencies
@@ -76,22 +76,18 @@ jobs:
7676
postgres:
7777
image: bitnami/postgresql
7878
env:
79-
POSTGRES_PASSWORD: postgres
80-
POSTGRES_DB: graph_node_test
81-
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
82-
POSTGRESQL_EXTRA_FLAGS: "-c max_connections=1000"
83-
POSTGRESQL_REPLICATION_USE_PASSFILE: no
79+
POSTGRESQL_PASSWORD: graph
80+
POSTGRESQL_USERNAME: graph
81+
POSTGRESQL_DB: graph-test
82+
POSTGRESQL_INITDB_ARGS: "-E UTF8 --locale=C"
83+
POSTGRESQL_MAX_CONNECTIONS: 500
8484
options: >-
85-
--health-cmd "pg_isready -U postgres"
85+
--health-cmd pg_isready -U graph
8686
--health-interval 10s
8787
--health-timeout 5s
88-
--health-retries 10
88+
--health-retries 5
8989
ports:
9090
- 5432:5432
91-
env:
92-
GRAPH_IPFS_REQUEST_TIMEOUT: "60"
93-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings --cfg test_with_ipfs"
94-
RUNNER_TESTS_WAIT_FOR_SYNC_SECS: "600"
9591
steps:
9692
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
9793
- name: Setup dependencies
@@ -135,22 +131,20 @@ jobs:
135131
ports:
136132
- 3001:5001
137133
postgres:
138-
image: postgres
134+
image: bitnami/postgresql
139135
env:
140-
POSTGRES_USER: graph-node
141-
POSTGRES_PASSWORD: let-me-in
142-
POSTGRES_DB: graph-node
143-
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
144-
POSTGRESQL_EXTRA_FLAGS: "-c max_connections=1000"
136+
POSTGRESQL_PASSWORD: let-me-in
137+
POSTGRESQL_USERNAME: graph-node
138+
POSTGRESQL_DB: graph-node
139+
POSTGRESQL_INITDB_ARGS: "-E UTF8 --locale=C"
140+
POSTGRESQL_MAX_CONNECTIONS: 500
145141
options: >-
146-
--health-cmd pg_isready
142+
--health-cmd pg_isready -U graph-node
147143
--health-interval 10s
148144
--health-timeout 5s
149145
--health-retries 5
150146
ports:
151147
- 3011:5432
152-
env:
153-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
154148
steps:
155149
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
156150
- name: Setup dependencies

0 commit comments

Comments
 (0)