Skip to content

Commit baba489

Browse files
committed
ci: use bitnami
1 parent bb4f791 commit baba489

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 28 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,21 @@ 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
39+
POSTGRESQL_REPLICATION_USE_PASSFILE: no
3740
options: >-
38-
--health-cmd pg_isready
41+
--health-cmd "pg_isready -U graph"
3942
--health-interval 10s
4043
--health-timeout 5s
4144
--health-retries 5
4245
ports:
4346
- 5432:5432
44-
env:
45-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
4647
steps:
4748
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
4849
- name: Setup dependencies
@@ -76,22 +77,19 @@ jobs:
7677
postgres:
7778
image: bitnami/postgresql
7879
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"
80+
POSTGRESQL_PASSWORD: graph
81+
POSTGRESQL_USERNAME: graph
82+
POSTGRESQL_DB: graph-test
83+
POSTGRESQL_INITDB_ARGS: "-E UTF8 --locale=C"
84+
POSTGRESQL_MAX_CONNECTIONS: 500
8385
POSTGRESQL_REPLICATION_USE_PASSFILE: no
8486
options: >-
85-
--health-cmd "pg_isready -U postgres"
87+
--health-cmd "pg_isready -U graph"
8688
--health-interval 10s
8789
--health-timeout 5s
88-
--health-retries 10
90+
--health-retries 5
8991
ports:
9092
- 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"
9593
steps:
9694
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
9795
- name: Setup dependencies
@@ -135,22 +133,21 @@ jobs:
135133
ports:
136134
- 3001:5001
137135
postgres:
138-
image: postgres
136+
image: bitnami/postgresql
139137
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"
138+
POSTGRESQL_PASSWORD: let-me-in
139+
POSTGRESQL_USERNAME: graph-node
140+
POSTGRESQL_DB: graph-node
141+
POSTGRESQL_INITDB_ARGS: "-E UTF8 --locale=C"
142+
POSTGRESQL_MAX_CONNECTIONS: 500
143+
POSTGRESQL_REPLICATION_USE_PASSFILE: no
145144
options: >-
146-
--health-cmd pg_isready
145+
--health-cmd "pg_isready -U graph-node"
147146
--health-interval 10s
148147
--health-timeout 5s
149148
--health-retries 5
150149
ports:
151150
- 3011:5432
152-
env:
153-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
154151
steps:
155152
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
156153
- name: Setup dependencies

0 commit comments

Comments
 (0)