From 08c1d659c45f25faaf1b94387ab84fc6db85efad Mon Sep 17 00:00:00 2001 From: till_schuetze Date: Thu, 31 Oct 2024 09:11:00 +0100 Subject: [PATCH] try caching the database --- .github/workflows/code-quality.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index c3588e82c..c455770d4 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -321,18 +321,18 @@ jobs: restore-keys: | sqlx-${{ runner.os }}- - - name: Install Rust dependencies - env: - DATABASE_URL: "postgres://www-data:www-data@localhost:15432/swissgeol-local" - run: | - docker compose up -d db - sleep 10 - cd api +# - name: Install Rust dependencies +# env: +# DATABASE_URL: "postgres://www-data:www-data@localhost:15432/swissgeol-local" +# run: | +# docker compose up -d db +# sleep 10 +# cd api # sqlx database create # sqlx migrate run - name: Run test run: | - docker compose up -d + docker compose up -d api sleep 10 cd api docker compose exec api cargo test --offline