@@ -15,7 +15,8 @@ concurrency:
1515env :
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://postgres:postgres@localhost:5432/graph-test"
1920
2021jobs :
2122 unit-tests :
@@ -28,21 +29,18 @@ 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_DB : graph-test
35+ POSTGRESQL_INITDB_ARGS : " -E UTF8 --locale=C"
36+ POSTGRESQL_MAX_CONNECTIONS : 500
3737 options : >-
3838 --health-cmd pg_isready
3939 --health-interval 10s
4040 --health-timeout 5s
4141 --health-retries 5
4242 ports :
4343 - 5432:5432
44- env :
45- RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings"
4644 steps :
4745 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
4846 - name : Setup dependencies
@@ -76,22 +74,16 @@ jobs:
7674 postgres :
7775 image : bitnami/postgresql
7876 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
77+ POSTGRESQL_DB : graph-test
78+ POSTGRESQL_INITDB_ARGS : " -E UTF8 --locale=C"
79+ POSTGRESQL_MAX_CONNECTIONS : 500
8480 options : >-
85- --health-cmd " pg_isready -U postgres"
81+ --health-cmd pg_isready
8682 --health-interval 10s
8783 --health-timeout 5s
88- --health-retries 10
84+ --health-retries 5
8985 ports :
9086 - 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"
9587 steps :
9688 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
9789 - name : Setup dependencies
@@ -141,16 +133,13 @@ jobs:
141133 POSTGRES_PASSWORD : let-me-in
142134 POSTGRES_DB : graph-node
143135 POSTGRES_INITDB_ARGS : " -E UTF8 --locale=C"
144- POSTGRESQL_EXTRA_FLAGS : " -c max_connections=1000"
145136 options : >-
146- --health-cmd pg_isready
137+ --health-cmd " pg_isready -U graph-node"
147138 --health-interval 10s
148139 --health-timeout 5s
149140 --health-retries 5
150141 ports :
151142 - 3011:5432
152- env :
153- RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings"
154143 steps :
155144 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
156145 - name : Setup dependencies
0 commit comments