From 20f1531f050ab70a13a4baab1f411152b2b694d2 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Wed, 1 May 2024 15:59:40 -0700 Subject: [PATCH] Try conditionally setting DATABSE_URL env variable in job.tests.env It appears that github was possibly masking the root:root part of the database url. --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8edaa7cc..cace9d38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,11 +40,10 @@ jobs: MYSQL_ROOT_PASSWORD: root options: --tmpfs /var/lib/mysql + env: + DATABASE_URL: ${{ matrix.backend == 'sqlite' && 'sqlite:///db.sqlite3' || 'mysql://root:root@127.0.0.1:3306/mysql' }} + steps: - - name: Set environment variables - if: ${{ matrix.backend == 'mariadb' }} - run: | - echo "DATABASE_URL==mysql://root:root@127.0.0.1:3306/mysql" >> $GITHUB_ENV - name: Checkout Code Repository uses: actions/checkout@v4