Skip to content

Commit b9cb475

Browse files
authored
Use tmpfs for DBs in gh workflows (#4513)
1 parent 638d7e1 commit b9cb475

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/unit_tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
env:
5151
POSTGRES_PASSWORD: rootpassword
5252
options: >-
53+
--tmpfs /var/lib/postgresql/data:rw,size=2g
5354
--health-cmd pg_isready
5455
--health-interval 10s
5556
--health-timeout 5s
@@ -83,7 +84,12 @@ jobs:
8384
env:
8485
MYSQL_DATABASE: cc_test
8586
MYSQL_ROOT_PASSWORD: password
86-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
87+
options: >-
88+
--tmpfs /var/lib/mysql:rw,size=2g
89+
--health-cmd="mysqladmin ping"
90+
--health-interval=10s
91+
--health-timeout=5s
92+
--health-retries=3
8793
ports:
8894
- 3306:3306
8995
steps:

.github/workflows/unit_tests_backwards_compatibility.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
env:
4141
POSTGRES_PASSWORD: rootpassword
4242
options: >-
43+
--tmpfs /var/lib/postgresql/data:rw,size=2g
4344
--health-cmd pg_isready
4445
--health-interval 10s
4546
--health-timeout 5s
@@ -92,7 +93,12 @@ jobs:
9293
env:
9394
MYSQL_DATABASE: cc_test
9495
MYSQL_ROOT_PASSWORD: password
95-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
96+
options: >-
97+
--tmpfs /var/lib/mysql:rw,size=2g
98+
--health-cmd="mysqladmin ping"
99+
--health-interval=10s
100+
--health-timeout=5s
101+
--health-retries=3
96102
ports:
97103
- 3306:3306
98104
steps:

0 commit comments

Comments
 (0)