From 086e6d23aac8ac9709fb8515c65e184878e16271 Mon Sep 17 00:00:00 2001 From: johha Date: Wed, 13 Aug 2025 16:27:06 +0200 Subject: [PATCH] Use tmpfs for DBs in gh workflows --- .github/workflows/unit_tests.yml | 8 +++++++- .github/workflows/unit_tests_backwards_compatibility.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index ba493331473..ba4e6530e71 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -50,6 +50,7 @@ jobs: env: POSTGRES_PASSWORD: rootpassword options: >- + --tmpfs /var/lib/postgresql/data:rw,size=2g --health-cmd pg_isready --health-interval 10s --health-timeout 5s @@ -83,7 +84,12 @@ jobs: env: MYSQL_DATABASE: cc_test MYSQL_ROOT_PASSWORD: password - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + options: >- + --tmpfs /var/lib/mysql:rw,size=2g + --health-cmd="mysqladmin ping" + --health-interval=10s + --health-timeout=5s + --health-retries=3 ports: - 3306:3306 steps: diff --git a/.github/workflows/unit_tests_backwards_compatibility.yml b/.github/workflows/unit_tests_backwards_compatibility.yml index 61840c56837..844b6e27085 100644 --- a/.github/workflows/unit_tests_backwards_compatibility.yml +++ b/.github/workflows/unit_tests_backwards_compatibility.yml @@ -40,6 +40,7 @@ jobs: env: POSTGRES_PASSWORD: rootpassword options: >- + --tmpfs /var/lib/postgresql/data:rw,size=2g --health-cmd pg_isready --health-interval 10s --health-timeout 5s @@ -92,7 +93,12 @@ jobs: env: MYSQL_DATABASE: cc_test MYSQL_ROOT_PASSWORD: password - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + options: >- + --tmpfs /var/lib/mysql:rw,size=2g + --health-cmd="mysqladmin ping" + --health-interval=10s + --health-timeout=5s + --health-retries=3 ports: - 3306:3306 steps: